mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fix Gcc Warning hashstream.h
/libretroshare/src/crypto/hashstream.cc:38: warning: friend declaration ‘template<class T> librs::crypto::HashStream& librs::crypto::operator<<(librs::crypto::HashStream&, const T&)’ is not visible to explicit specialization HashStream& operator<<(HashStream& u,const std::string& s) /libretroshare/src/crypto/hashstream.cc:44: warning: friend declaration ‘template<class T> librs::crypto::HashStream& librs::crypto::operator<<(librs::crypto::HashStream&, const T&)’ is not visible to explicit specialization HashStream& operator<<(HashStream& u,const uint64_t& n) /libretroshare/src/crypto/hashstream.cc:58: warning: friend declaration ‘template<class T> librs::crypto::HashStream& librs::crypto::operator<<(librs::crypto::HashStream&, const T&)’ is not visible to explicit specialization HashStream& operator<<(HashStream& u,const uint32_t& n) /libretroshare/src/crypto/hashstream.cc:72: warning: friend declaration ‘template<class T> librs::crypto::HashStream& librs::crypto::operator<<(librs::crypto::HashStream&, const T&)’ is not visible to explicit specialization HashStream& operator<<(HashStream& u,const uint8_t& n)
This commit is contained in:
parent
79a8b2183f
commit
1839d23df1
@ -28,6 +28,11 @@ namespace librs
|
||||
{
|
||||
namespace crypto
|
||||
{
|
||||
// Forward declare the class
|
||||
class HashStream;
|
||||
// Forward declare the template operator
|
||||
template<class T> HashStream& operator<<(HashStream& u, const T&);
|
||||
|
||||
class HashStream
|
||||
{
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user