I looked the C++14 reference and could not see where the standard would says that the const built in types are inlined by the compiler and not allocated. i.e. the claim is
const int i = 5;
std::cout<<i;
everywhere i is used with be replaced with 5 and no memory space will be allocated. Can someone please point to the standard section ?
Aucun commentaire:
Enregistrer un commentaire