💡 clarifying comment

This commit is contained in:
EntireTwix 2022-12-18 13:22:46 -08:00
parent 37b110d36f
commit 2c62c89b47

View file

@ -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;