Hi Steven, I'll do that tomorrow asap - I need to make sure that my code is still up to date, which I cannot do from home as my connection is rather slow now. Anyway: Meanwhile I had a look at the source code (version 1.42): Looks like the open character is directed to the stream separately, then the next item, etc. Thanks a lot! Christian On Thu, 2011-01-06 at 08:41 -0800, Steven Watanabe wrote:
AMDG
On 1/6/2011 2:51 AM, Christian Meesters wrote:
Having the following code (where 'out' is a std::ostream):
out<< boost::tuples::set_open('[') << boost::tuples::set_close(']') << boost::tuples::set_delimiter(',') << std::setw(21)<< std::right<< get_some_tuple();
I expected to see the tuple in a column of 21 spaces, adjusted to the right. Instead, the tuple is appended on 21 spaces. Any hint on what my mistake is?
You didn't make a mistake. This is a very common error in implementing stream operators. Please file a ticket at http://svn.boost.org/, and I'll fix it as soon as I can.
In Christ, Steven Watanabe
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users