]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/tag.h
Make Tags convertible back to the original string in debug builds
[libs/gl.git] / source / render / tag.h
index 938089899277ba3ee196f2ba4279bece666057dd..dbc0b3ef47819470b17440642650dc9e6ee76ce4 100644 (file)
@@ -2,6 +2,7 @@
 #define MSP_GL_TAG_H_
 
 #include <string>
+#include <msp/strings/lexicalcast.h>
 
 namespace Msp {
 namespace GL {
@@ -18,10 +19,15 @@ struct Tag
        Tag(const char *);
        Tag(const std::string &s);
 
+       std::string str() const;
+
        bool operator<(Tag t) const { return id<t.id; }
        bool operator==(Tag t) const { return id==t.id; }
+       bool operator!=(Tag t) const { return id!=t.id; }
 };
 
+void operator<<(LexicalConverter &, Tag);
+
 } // namespace GL
 } // namespace Msp