Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template<class T>
- void print(T t)
- {
- qDebug() << t;
- }
- template<int n, class... B>
- auto sum(B... ar)
- {
- qDebug() << n;
- (print(ar), ...);
- }
- int main(int argc, char *argv[])
- {
- QCoreApplication a(argc, argv);
- sum<437>("we", "are", "pogt");
- return a.exec();
- }
Add Comment
Please, Sign In to add comment