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

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -