i have class member methods(omitting class definition itself):
template<severity level, typename...args> void print(args...args){ //va template print function calls recursively print_impl d_policy->lockmutex(); switch(level){ case debug : d_policy->getbuffer() << "<debug>"; break; case warning : d_policy->getbuffer() << "<warning>"; break; case error : d_policy->getbuffer() << "<error>"; break; } d_policy->gettime(); print_impl(args...); } template<typename first, typename...rest> void print_impl(first first, rest...rest){ //called print_impl public method } void print_impl(){ }
i'm stuck in wrapping boost python, saw thread in stack overflow how wrap variable arguments function different beast: how expose c++ function taking variable arguments in boost python, appreciated.
Comments
Post a Comment