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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -