D
dmtr
I'd like to write a one liner:
But apparently I can't. I'm getting:
Is there any way to do it without declaring "std::stringstream s;"
explicitly? Or there is simply no way to write simple formatting code
"'Value = %d' % 1" in one line without extra clutter? (I know, I
know, I should just switch to python and avoid C++ entirely, but all
this legacy stuff is still in ugly, slow and unintuitive C++ :-/)
-- Cheers, Dmitry
But apparently I can't. I'm getting:
Is there any way to do it without declaring "std::stringstream s;"
explicitly? Or there is simply no way to write simple formatting code
"'Value = %d' % 1" in one line without extra clutter? (I know, I
know, I should just switch to python and avoid C++ entirely, but all
this legacy stuff is still in ugly, slow and unintuitive C++ :-/)
-- Cheers, Dmitry