lundi 1 août 2016

Do primitive types have also constructors in C++?

I have read in Dr. Bjarne Stroustrup Book "The C++ Programming Language" 3rd edition that built in types have also constructors in C++ in section 10.4.2.

But then the following link says that POD types can't have constructors:

http://www.parashift.com/c++-faq-lite/pod-types.html

Which is true? Do primitive types have also constructors in C++?

Aucun commentaire:

Enregistrer un commentaire