Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2240: Move placeholders into the boost::placeholders namespace
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-12-17 14:58:29
#2240: Move placeholders into the boost::placeholders namespace
--------------------------------------+-------------------------------------
Reporter: pdimov | Owner: pdimov
Type: Tasks | Status: new
Milestone: To Be Determined | Component: bind
Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
--------------------------------------+-------------------------------------
Comment (by anonymous):
+1
They are actually worse than global, they are in an unnamed namespace, so
even bringing the std::placeholders to the local workspace doesn't work.
The only sensible workaround is to overload std::is_placeholder so that it
works with boost placeholders, then use boost::placeholders everywhere. Do
you think we could have this overload in boost itself? The following works
great:
{{{
namespace std {
template<int n> struct is_placeholder<boost::arg<n>> : public
integral_constant<int,n> {};
template<int n> struct is_placeholder<const boost::arg<n>> : public
integral_constant<int,n> {};
/*namespace std*/ }
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2240#comment:10> 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:50:11 UTC