allow an std::string to be an attribute
This commit is contained in:
1 parent
7bbe8c8d58
commit
367d558ec1
2 files changed
+7
No files matched your search
@@ -27,6 +27,11 @@ String::Get (void) const
|
||||
return m_value;
|
||||
}
|
||||
|
||||
String::operator std::string () const
|
||||
{
|
||||
return m_value;
|
||||
}
|
||||
|
||||
std::ostream & operator << (std::ostream &os, const String &value)
|
||||
{
|
||||
os << value.Get ();
|
||||
|
||||
Reference in new issue
Block a user