$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: [boost] [result_of] fails with clan (C++11)
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2012-11-27 15:47:50
Hello,
clang (c++11 support) fails on code like:
BOOST_STATIC_ASSERT((
is_same< void, typename result_of< Fn() >::type >::value));
with error:
no type named 'type' in 'boost::result_of<void (&())(X &)>'
is_same< void, typename result_of< Fn() >::type >::value));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
../boost/static_assert.hpp:48:50: note: expanded from macro 'BOOST_STATIC_ASSERT'
# define BOOST_STATIC_ASSERT( B ) static_assert(B, #B)
^
Do you know why it fails? (other compilers like gcc, intel, msvc compile
the code)
regards,
Oliver