mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-16 16:12:14 +11:00
💡 clarifying comment
This commit is contained in:
parent
37b110d36f
commit
2c62c89b47
1 changed files with 5 additions and 0 deletions
|
|
@ -1,6 +1,11 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
/*
|
||||||
|
The intended use of this cursed class is in violating the encapsulation of std::string this class acts like std::string_view even though its stored in a std::string.
|
||||||
|
The reason this was needed is because sometimes we have a std::string_view instance and another library requires a const std::string& argument, forcing us to copy to a string before passing it, this copying is unnecessary.
|
||||||
|
*/
|
||||||
|
|
||||||
struct StrFromSV_Wrapper
|
struct StrFromSV_Wrapper
|
||||||
{
|
{
|
||||||
std::string str;
|
std::string str;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue