Skip to content

Instantly share code, notes, and snippets.

@VitaminaCPP
Created August 26, 2014 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VitaminaCPP/125897e3e3160abb26d3 to your computer and use it in GitHub Desktop.
Save VitaminaCPP/125897e3e3160abb26d3 to your computer and use it in GitHub Desktop.
El código que recibe el Compilador después de que lo trate el Preprocesador
const int CONST = 654321;
void CopyInto(std::ofstream &Stream)
{
// Error C2101: '&' en la constante.
Stream.write(reinterpret_cast<const char *>(&123456), sizeof(123456));
Stream.write(reinterpret_cast<const char *>(&CONST), sizeof(CONST));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment