Created on 2016-05-07.00:00:00 last changed 89 months ago
[ 2017-07-06, Marshall comments ]
All the other cases from num_put — int, long, etc all are covered in [facet.num.put.virtuals] p1 .. p5, which describe how to align and pad the output. (Specifically, stage 3) p6 does not.
With this description:cout << std::setw(15) << false;
outputs:
0 ﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎﹎// Column counter
but
cout << std::setw(15) << boolalpha << false;
outputs:
false
libc++ implements this exactly.
Dinkumware, libstdc++ and MSVC apply padding and alignment.
N4582 subclause [facet.num.put.virtuals] paragraph 6 makes no provision for fill-padding in its specification of the behaviour when (str.flags() & ios_base::boolalpha) != 0.
History | |||
---|---|---|---|
Date | User | Action | Args |
2017-07-06 18:10:22 | admin | set | messages: + msg9320 |
2016-05-07 00:00:00 | admin | create |