Boost logo

Boost :

Subject: Re: [boost] Updated boost::base_from_member for C++2011
From: Michel Morin (mimomorin_at_[hidden])
Date: 2012-02-17 22:04:09


Daryle Walker wrote:
> I did it in (https://svn.boost.org/trac/boost/changeset/77046),
> so check if it works for you now.

Both r77046 and the version with SFINEAE to noexcept work well
with clang-3.0 and gcc-4.6.

> Of course, if you or someone else here has a better construction,
> let me know and I'll try it instead.
> (It still has to work for me on GCC-4.6, though.)

Can NothrowConstructible be simply determined by
  BOOST_NOEXCEPT_EXPR(MemberType(static_cast<T&&>(x)...))
rather than
  BOOST_NOEXCEPT_EXPR(::new ((void*) 0) MemberType(static_cast<T&&>(x)...))
?

Regards,
Michel


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk