Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10125: call_once: compile errors in variadic version with rvalue reference emulation
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-06-16 21:17:03
#10125: call_once: compile errors in variadic version with rvalue reference
emulation
-------------------------------+----------------------
Reporter: raad@⦠| Owner: viboes
Type: Bugs | Status: assigned
Milestone: To Be Determined | Component: thread
Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+----------------------
Comment (by raad@â¦):
Please see the attached simple example for MSVC12. The error message is:
{{{
boost_call_once_test\boost_call_once_test\boost_call_once_test.cpp(19):
error C2665: 'boost::call_once' : none of the 2 overloads could convert
all the argument types
1>
boost_call_once_test\boost_call_once_test\boost\thread\win32\once.hpp(232):
could be 'void boost::call_once(boost::once_flag &,void (__cdecl
*)(void))'
1>
boost_call_once_test\boost_call_once_test\boost\thread\once.hpp(35): or
'void boost::call_once<boost::once_flag>(Function,boost::once_flag &)'
1> with
1> [
1> Function=boost::once_flag
1> ]
1> while trying to match the argument list '(boost::once_flag,
boost::_bi::bind_t<void,boost::_mfi::mf0<void,test_class>,boost::_bi::list1<boost::_bi::value<T>>>)'
1> with
1> [
1> T=test_class
1> ]
}}}
I don't know why the error message doesn't even mention
{{{
void call_once<Function>(once_flag& flag, boost::rv<Function> &f)
}}}
, IntelliSense suggests that overload too.
clang gives similar errors.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10125#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:16 UTC