Hacker News new | ask | show | jobs
by google234123 1661 days ago
std::cout::write(myInt,": ",something," - ",otherthing," - ",etc,'\n');

Possible with preprocessor.

2 comments

I'm not sure how that could be done before variadic templates were introduced in C++11.
I doubt that's possible with the C++98 preprocessor.