I use gcc (Ubuntu 5.4.1-2ubuntu1~16.04) 5.4.1 20160904
#define print std::cout // works for me
however ...
[code]
using print = std::cout;
results in :
adefs.hpp:13:27: error: ‘cout’ in namespace ‘std’ does not name a type
using print = std::cout;
Thanks in advance
I just remembered from very recent reading that the word
"using" is a kind of typedef, while #define will "____" a new
macro. Didn't have time to edit my post
?Thanks for the fast headsup
Michel Chassey
ps isn't print a command from BASIC ?