diff --git a/libraries/eosiolib/datastream.hpp b/libraries/eosiolib/datastream.hpp index 65666e78cc..48122b97f2 100644 --- a/libraries/eosiolib/datastream.hpp +++ b/libraries/eosiolib/datastream.hpp @@ -271,7 +271,7 @@ class datastream { * @return datastream& - Reference to the datastream */ template -inline datastream& operator<<(datastream& ds, const public_key pubkey) { +inline datastream& operator<<(datastream& ds, const ::public_key pubkey) { ds.write( (const char*)&pubkey, sizeof(pubkey)); return ds; } @@ -286,7 +286,7 @@ inline datastream& operator<<(datastream& ds, const public_key p * @return datastream& - Reference to the datastream */ template -inline datastream& operator>>(datastream& ds, public_key& pubkey) { +inline datastream& operator>>(datastream& ds, ::public_key& pubkey) { ds.read((char*)&pubkey, sizeof(pubkey)); return ds; } @@ -362,7 +362,7 @@ inline datastream& operator>>(datastream& ds, bool& d) { * @return datastream& - Reference to the datastream */ template -inline datastream& operator<<(datastream& ds, const checksum256& d) { +inline datastream& operator<<(datastream& ds, const ::checksum256& d) { ds.write( (const char*)&d.hash[0], sizeof(d.hash) ); return ds; } @@ -377,7 +377,7 @@ inline datastream& operator<<(datastream& ds, const checksum256& * @return datastream& - Reference to the datastream */ template -inline datastream& operator>>(datastream& ds, checksum256& d) { +inline datastream& operator>>(datastream& ds, ::checksum256& d) { ds.read((char*)&d.hash[0], sizeof(d.hash) ); return ds; } @@ -966,7 +966,7 @@ bytes pack( const T& value ) { * @return datastream& - Reference to the datastream */ template -inline datastream& operator<<(datastream& ds, const checksum160& cs) { +inline datastream& operator<<(datastream& ds, const ::checksum160& cs) { ds.write((const char*)&cs.hash[0], sizeof(cs.hash)); return ds; } @@ -981,7 +981,7 @@ inline datastream& operator<<(datastream& ds, const checksum160& * @return datastream& - Reference to the datastream */ template -inline datastream& operator>>(datastream& ds, checksum160& cs) { +inline datastream& operator>>(datastream& ds, ::checksum160& cs) { ds.read((char*)&cs.hash[0], sizeof(cs.hash)); return ds; } @@ -996,7 +996,7 @@ inline datastream& operator>>(datastream& ds, checksum160& cs) { * @return datastream& - Reference to the datastream */ template -inline datastream& operator<<(datastream& ds, const checksum512& cs) { +inline datastream& operator<<(datastream& ds, const ::checksum512& cs) { ds.write((const char*)&cs.hash[0], sizeof(cs.hash)); return ds; } @@ -1011,7 +1011,7 @@ inline datastream& operator<<(datastream& ds, const checksum512& * @return datastream& - Reference to the datastream */ template -inline datastream& operator>>(datastream& ds, checksum512& cs) { +inline datastream& operator>>(datastream& ds, ::checksum512& cs) { ds.read((char*)&cs.hash[0], sizeof(cs.hash)); return ds; }