Commit 50c292e4 authored by Nabil Chouika's avatar Nabil Chouika
Browse files

refs#16

In ElementaryUtils:
- Automatic cast from Formatter to stringstream.
parent 38312f60
......@@ -39,10 +39,20 @@ public:
return m_stream.str();
}
/**
* Automatic cast to string.
*/
operator std::string() const {
return m_stream.str();
}
/**
* Automatic cast to stringstream.
*/
operator std::stringstream&() {
return m_stream;
}
enum ConvertToString {
to_str
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment