[Boost-bugs] [Boost C++ Libraries] #10126: call_once: deprecate (Function, once_flag&) onverload

Subject: [Boost-bugs] [Boost C++ Libraries] #10126: call_once: deprecate (Function, once_flag&) onverload
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-06-16 08:37:28


#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.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC