Boost logo

Boost :

Subject: [boost] [intrusive] possible workaround for vc12 compile errors
From: Daniela Engert (dani_at_[hidden])
Date: 2013-11-10 12:47:03


Hi,

I've attached a patch to ticket #9332
"has_member_function_callable_with.hpp compile error on msvc-12.0"
(https://svn.boost.org/trac/boost/ticket/9332)

This patch seems to fix the problem. My far-from-perfect understanding
of C++ seems to indicate, that the root cause is in line 201:

template< class F
        , std::size_t N = sizeof((boost::move_detail::declval<F>().
     BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME (), 0))>
struct BOOST_PP_CAT(zeroarg_checker_,
BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH_FUNCNAME)

the sizeof expression is evaluated with an unknown type U in declval<U>().

Ciao
   Dani


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