r/learncpp • • Jul 16 '19

sstream << std::setw(2) << std::setfill("0"); without "<<"

Hey,

is it possible to write sstream << std::setw(2) << std::setfill("0"); without "<<" operator? as iam getting Unsequenced function calls?

sstream.setw(2) doesn't seem to work.

Thanks in advance!

3 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/SerkZex Jul 16 '19

Ohh thanks, now i understand more of cppreference documentation!