Opened 8 years ago

Closed 8 years ago

#10126 closed Tasks (fixed)

call_once: deprecate (Function, once_flag&) overload

Reported by: raad@… 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 raad@…, 8 years ago

Summary: call_once: deprecate (Function, once_flag&) onverloadcall_once: deprecate (Function, once_flag&) overload

comment:2 by viboes, 8 years ago

Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:3 by raad@…, 8 years ago

Version: Boost 1.54.0Boost 1.55.0

comment:4 by viboes, 8 years ago

Milestone: To Be DeterminedBoost 1.56.0

comment:5 by viboes, 8 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.