[Boost-bugs] [Boost C++ Libraries] #10126: call_once: deprecate (Function, once_flag&) onverload
- Next message: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10126: call_once: deprecate (Function, once_flag&) overload (was: call_once: deprecate (Function, once_flag&) onverload)"
- Previous message: Boost C++ Libraries: "[Boost-bugs] [Boost C++ Libraries] #10125: call_once: compile errors in variadic version with rvalue reference emulation"
- Next in thread: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10126: call_once: deprecate (Function, once_flag&) overload (was: call_once: deprecate (Function, once_flag&) onverload)"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10126: call_once: deprecate (Function, once_flag&) overload (was: call_once: deprecate (Function, once_flag&) onverload)"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10126: call_once: deprecate (Function, once_flag&) overload"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10126: call_once: deprecate (Function, once_flag&) overload"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10126: call_once: deprecate (Function, once_flag&) overload"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10126: call_once: deprecate (Function, once_flag&) overload"
#10126: call_once: deprecate (Function, once_flag&) onverload
------------------------------+----------------------
Reporter: raad@⦠| Owner: anthonyw
Type: Tasks | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost 1.54.0 | Severity: Cosmetic
Keywords: |
------------------------------+----------------------
The compatibility overload of call_once with reversed argument order leads
to confusing error messages in clang.
The reason is that clang tries to instantiate
template<typename Function>
inline void call_once(Function func,once_flag& flag)
with Function = boost::once_flag.
Could that overload be removed for the next BOOST_THREAD_VERSION? That
would also help with codebases which need to use boost::call_once and
std::call_once interchangeably as this overload is not present in the std
version.
--
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10126>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
- Next message: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10126: call_once: deprecate (Function, once_flag&) overload (was: call_once: deprecate (Function, once_flag&) onverload)"
- Previous message: Boost C++ Libraries: "[Boost-bugs] [Boost C++ Libraries] #10125: call_once: compile errors in variadic version with rvalue reference emulation"
- Next in thread: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10126: call_once: deprecate (Function, once_flag&) overload (was: call_once: deprecate (Function, once_flag&) onverload)"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10126: call_once: deprecate (Function, once_flag&) overload (was: call_once: deprecate (Function, once_flag&) onverload)"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10126: call_once: deprecate (Function, once_flag&) overload"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10126: call_once: deprecate (Function, once_flag&) overload"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10126: call_once: deprecate (Function, once_flag&) overload"
- Reply: Boost C++ Libraries: "Re: [Boost-bugs] [Boost C++ Libraries] #10126: call_once: deprecate (Function, once_flag&) overload"
This archive was generated by hypermail 2.1.7
: 2017-02-16 18:50:16 UTC