This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Undefined ref to 'function<void ()()>::operator()() const' when called from free function defined in cc file.


Chris Fairles wrote:

Yeah. I'm not a huge fan of this global function<> w/ mutex method...

The main drawback I see is that function<>'s (copy) constructor or assignment operator are allowed to throw. You could std::move in __once_proxy though.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]