i want build 1 const with std::endl but by some reason isn't accepted:(
#define NewLine std::endl
i understand the '#define' isn't adviced to be used, but in these case i belive that i can't use the 'const':(
what isn't right with that line?
error message:
"C:\Users\Joaquim\Documents\CodeBlocks\My Class\console.h|170|note: void Console::write(A, B ...) [with A = const char*; B = {}]|"
the write function:
//write
void write()
{
cout <<"";
print();
}
template <typename A, typename ...B>
void write(A argHead, B... argTail)
{
cout << argHead;
write(argTail...);
}
so why the error?