mardi 28 mars 2017

Why ostream is not convertible to ostream?

I am doing some type checking in my project. The following example

using namespace std;

cout << ( is_convertible<ostream,ostream>::value ? "TRUE":"FALSE" ) << endl;

returns "FALSE".

Could someone explain why?

Aucun commentaire:

Enregistrer un commentaire