allow an std::string to be an attribute

This commit is contained in:
Mathieu Lacage committed 2008-04-11 11:24:42 -07:00
1 parent 7bbe8c8d58
commit 367d558ec1
2 files changed
+7

No files matched your search

+5
View File
@@ -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 ();