c++ - Threads and template member functions -
i got template member function call using .template :
myobject.template memberfunction<somearguments...>(); //not variadic (but template of template)
i wanted thread call std::thread. tried :
std::thread mythread(&myclass::memberfunction<somearguments...>, &myobject);
but doesn't compile. seems parsing problem since 'expected primary-expression before' parenthesis , comma.
ps : french , new c++ hope understandable.
just add template
keyword after ::
, same after .
. yes, same parser issue applies.
Comments
Post a Comment