Opened 8 years ago
Closed 8 years ago
#10126 closed Tasks (fixed)
call_once: deprecate (Function, once_flag&) overload
Reported by: | Owned by: | viboes | |
---|---|---|---|
Milestone: | Boost 1.56.0 | Component: | thread |
Version: | Boost 1.55.0 | Severity: | Cosmetic |
Keywords: | Cc: | raad@… |
Description
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.
Change History (5)
comment:1 by , 8 years ago
Summary: | call_once: deprecate (Function, once_flag&) onverload → call_once: deprecate (Function, once_flag&) overload |
---|
comment:2 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 8 years ago
Version: | Boost 1.54.0 → Boost 1.55.0 |
---|
comment:4 by , 8 years ago
Milestone: | To Be Determined → Boost 1.56.0 |
---|
comment:5 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.