Why std::call_once deduction failed and the error is “couldn’t deduce template parameter ‘_Callable’ “
I am trying to use singleton pattern with std::call_once, but template dedution failed while compiling.
Why std::call_once deduction failed and the error is “couldn’t deduce template parameter ‘_Callable’ “
I am trying to use singleton pattern with std::call_once, but template dedution failed while compiling.