jeudi 19 avril 2018

What does the "__cplusplus" macro expand to?

  • What does the C++ macro __cplusplus contain and expand to?
  • Does the macro __cplusplus always, even in oldest C++ implementation, contain and expand to a numeric value?
  • Is it safe to use #if __cplusplus or we should use instead of that #ifdef __cplusplus?

Aucun commentaire:

Enregistrer un commentaire