|
Boost : |
Subject: Re: [boost] [base_from_member][sun-next_cpp11] problem with variadics at base_from_member
From: Aparna Kumta (aparna.kumta_at_[hidden])
Date: 2015-11-01 12:07:35
On 11/01/15 04:29, JoaquÃn M LópezMuñoz wrote:
> Hi,
>
> In 2012, boost::base_from_member was equipped with variadics machinery
> to perfect-forward construction arguments to the contained member.
> Unfortunately, Solaris Studio 12.5 on Intel chokes on it
> (http://tinyurl.com/no7trgb ):
>
> "../boost/utility/base_from_member.hpp", line 137:
> Error: Parameter pack 'x' not expanded with '...' [...]
>
> Oddly enough, the same compiler does work fine on Sparc.
> May I suggest that lines 129-132 of boost/utility/base_from_member.hpp
>
> #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && \
> !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && \
> !defined(BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS) && \
> !(defined(__GNUC__) && (__GNUC__ == 4) && (__GNUC_MINOR__ < 4))
>
> be added a special provision for this environment (the same way it
> already has for GCC 4 and prior)?
>
> #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && \
> !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && \
> !defined(BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS) && \
> !(defined(__GNUC__) && (__GNUC__ == 4) && (__GNUC_MINOR__ < 4)) && \
> !(defined(__SUNPRO_CC) && defined(__i386) && (__SUNPRO_CC <= 0x5140))
>
> I can't unfortunately test this myself as I don't have access to the
> compiler. FWIW, my interest in having this fixed is that it's
> seemingly the only bug preventing Oracle Solaris Studio 12.5 on Intel
> from supporting Boost.MultiIndex.
Thank you for reporting this. I will follow up on this.
Aparna
>
> JoaquÃn M López Muñoz
> Telefónica
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk