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.

quick demo here.


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -