anchor.diff:  :hp-image: /images/cpp.jpg
   
   
  -==== What's here ?
  +=== What's here ?
   
   Here you will find some tips n tricks around C++.
   
   
  -==== Ternary
  +=== Ternary
   
   [source,cpp]
   ----
  
positive.code: }
  ----
  
  ==== cast
  
  dynamic_cast pour les classes héritées surtout, 
  static_cast pour les types de base,
  reinterpret_cast pour forcer un cast de n'importe quoi vers n'importe quoi
  et const_cast pour pouvoir passer des string en entrée à des vieilles fonctions C qui veulent des char*
  
  ==== Concat arrays C style in C++
  
  [source,cpp]
  ----
  
negative.code: #endif
  ----
  
  === create a class to not include it
  
  When you have namespace tata with in it namespace tutu and in it a class myClass and you want to have a pointer of myClass type in a class, to faster the build in .h don't include the "myClass.h", include it only in cpp and prefer this way : 
  
  [source,cpp]
  ----
  