Fix full namespace in variant for using namespace std compatability
authorJohannes Schanda <schanda@itestra.de>
Tue, 26 Feb 2013 12:28:59 +0000 (13:28 +0100)
committerJohannes Schanda <schanda@itestra.de>
Tue, 26 Feb 2013 12:28:59 +0000 (13:28 +0100)
Fix wrong path for byte buffers in output stream

src/CommonAPI/OutputStream.h
src/CommonAPI/SerializableVariant.hpp

index fccb31c..6158f12 100644 (file)
@@ -369,10 +369,6 @@ inline OutputStream& operator<<(OutputStream& outputStream, const std::string& s
        return outputStream.writeValue(stringValue);
 }
 
-inline OutputStream& operator<<(OutputStream& outputStream, const ByteBuffer& byteBufferValue) {
-       return outputStream.writeValue(byteBufferValue);
-}
-
 inline OutputStream& operator<<(OutputStream& outputStream, const Version& versionValue) {
        return outputStream.writeVersionValue(versionValue);
 }
index 4ff73d2..a249f92 100644 (file)
@@ -145,7 +145,7 @@ public:
     void operator()(const _Type&) {
         _Type value;
         inputStream_ >> value;
-        lhs_.template set<_Type>(std::move(value), false);
+        lhs_.Variant<_Types...>::template set<_Type>(std::move(value), false);
     }
 
 private:
@@ -203,12 +203,12 @@ public:
 
     template<typename _Type>
     void operator()(const _Type& value) const {
-        lhs_.template set<_Type>(value, clear_);
+        lhs_.Variant<_Types...>::template set<_Type>(value, clear_);
     }
 
     template<typename _Type>
     void operator()(_Type& value) const {
-        lhs_.template set<_Type>(value, clear_);
+        lhs_.Variant<_Types...>::template set<_Type>(value, clear_);
     }
 
 private: