Subject: Re: [Boost-bugs] [Boost C++ Libraries] #849: boost::format and operator priority rule
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-08-16 17:45:21
#849: boost::format and operator priority rule
----------------------+-----------------------------------------------------
Reporter: nobody | Owner: samuel_krempp
Type: Bugs | Status: closed
Milestone: | Component: None
Version: None | Severity: Problem
Resolution: invalid | Keywords:
----------------------+-----------------------------------------------------
Changes (by samuel_krempp):
* status: new => closed
* resolution: None => invalid
Comment:
The choice of operator% was debated at the time of library design, and it
was found better than the alternatives.
The point you raised was considered, and considered unharmful since trying
to compile :
cout<<format("Choose %1% of %2%") % total-remaining+1 % total;
fails with compiler error, the user is bound to realize her mistake when
she forgets to parenthesize her arithmetics from time to time.
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/849#comment:5>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:56 UTC