Re: [Boost-bugs] [Boost C++ Libraries] #7192: [mpl] std::integral_constant support

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7192: [mpl] std::integral_constant support
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-08-05 17:13:28


#7192: [mpl] std::integral_constant support
-------------------------------+--------------------------------------------
  Reporter: eric_niebler | Owner: agurtovoy
      Type: Feature Requests | Status: new
 Milestone: Boost 1.52.0 | Component: mpl
   Version: Boost 1.51.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------

Comment (by agurtovoy):

 Replying to [ticket:7192 eric_niebler]:
> The following reasonable-seeming use of mpl::plus doesn't compile:
>
> {{{
> #include <utility>
> #include <boost/mpl/plus.hpp>
>
> typedef std::integral_constant<int, 1> one;
> typedef boost::mpl::plus<one, one>::type two;
> }}}
>
> That's because mpl only works with its own integral constant wrappers,
> not the standard one. That seems unfortunate to me. Is there any
> interest in supporting this?
>

 Yes, this should definitely work.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7192#comment:2>
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:10 UTC