Bonjour,
Je suis actuellement en train de faire passer un hash (= 8 Uint64) grâce à un de vos paquet.
Mais lorsque j'essaye d'extraire ou de mettre un (U)int64 dans le paquet, j'ai une erreur :
/media/Acer/Users/Neckara/Desktop/Donnees/Projet/Serveur/Serveur/administrateur.cpp:137: error: ambiguous overload for ‘operator>>’ in ‘paquet >> password’
Erreur que je n'ai pas avec les (U)int de taille inférieur.
J'ai aussi remarqué ceci :
/// Overloads of operator >> to read data from the packet
///
////////////////////////////////////////////////////////////
Packet& operator >>(bool& data);
Packet& operator >>(Int8& data);
Packet& operator >>(Uint8& data);
Packet& operator >>(Int16& data);
Packet& operator >>(Uint16& data);
Packet& operator >>(Int32& data);
Packet& operator >>(Uint32& data);
Packet& operator >>(float& data);
Packet& operator >>(double& data);
Packet& operator >>(char* data);
Packet& operator >>(std::string& data);
Packet& operator >>(wchar_t* data);
Packet& operator >>(std::wstring& data);
Packet& operator >>(String& data);
////////////////////////////////////////////////////////////
/// Overloads of operator << to write data into the packet
///
////////////////////////////////////////////////////////////
Packet& operator <<(bool data);
Packet& operator <<(Int8 data);
Packet& operator <<(Uint8 data);
Packet& operator <<(Int16 data);
Packet& operator <<(Uint16 data);
Packet& operator <<(Int32 data);
Packet& operator <<(Uint32 data);
Packet& operator <<(float data);
Packet& operator <<(double data);
Packet& operator <<(const char* data);
Packet& operator <<(const std::string& data);
Packet& operator <<(const wchar_t* data);
Packet& operator <<(const std::wstring& data);
Packet& operator <<(const String& data);
Les (U)int64 n'apparaissent pas. Est-ce un oublie?