void Application::print(QVariant arg1,...){ QVariant* n = &arg1; while(*n) qDebug()<<(*n); }
ошибка: could not convert '* n' from 'QVariant' to 'bool'
C++ (Qt)template <typename T>void print(T && s) { std::cout << s << std::endl;} template <typename T, typename ...Args>void print(T && s, Args... args) { std::cout << s << std::endl; print(args...);} int main(){ print(123, 'a', 3.14, "Hello word!"); return 0;}