Subject: [Boost-bugs] [Boost C++ Libraries] #2656: Change boost::tuple::ignore to initialisation rather than assignment to allow pre-compiled headers
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-01-14 11:24:50
#2656: Change boost::tuple::ignore to initialisation rather than assignment to
allow pre-compiled headers
--------------------------------------------------------------------------------+
Reporter: Peter Myerscough-Jackopson <peter.myerscough-jackopson_at_[hidden]> | Owner: djowel
Type: Patches | Status: new
Milestone: Boost 1.38.0 | Component: tuple
Version: Boost 1.37.0 | Severity: Optimization
Keywords: tuple::ignore |
--------------------------------------------------------------------------------+
In the boost tuple library, there is a variable called ''ignore'' that can
be used in calls to boost::tie(...). Under C++Builder 2007 it is not
possible to generate pre-compiled headers when including the appropriate
headers to use boost::tie because the ''ignore'' variable is assigned on
construction using the =operator rather than constructed/initialised.
Although this may be about optimising build performance, and I am using an
older compiler, I don't think I am requesting a negative change.
{{{
--- boost/tuple/detail/tuple_basic.hpp (Revision 46808)
+++ boost/tuple/detail/tuple_basic.hpp (working copy)
@@ -665,7 +665,7 @@
} // namespace detail
// "ignore" allows tuple positions to be ignored when using "tie".
---detail::swallow_assign const ignore = detail::swallow_assign();
+++detail::swallow_assign const ignore( detail::swallow_assign() );
//
---------------------------------------------------------------------------
// The call_traits for make_tuple
}}}
I hope this is accepted,
Yours,
Peter MJ
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2656> 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:59 UTC