La conversion d'une chaîne de u_int8_t tableau en C++

Je veux un std::string objet (comme un nom) à un u_int8_t tableau en C++. L'
fonction reinterpret_cast<const uint8_t*> rejette ma chaîne. Et depuis que je suis de codage à l'aide de NS-3, certains avertissements sont interprétés comme des erreurs.

  • Afficher votre code. Qu'entendez-vous par "objet string"? std::string ou un pointeur sur un char.
  • un std::string objet.
InformationsquelleAutor Carlo | 2011-10-05