Skip to content

Instantly share code, notes, and snippets.

View kubatrt's full-sized avatar
🎯
Focusing

Jacob Storm kubatrt

🎯
Focusing
View GitHub Profile
@kubatrt
kubatrt / gist:3fdd027d50a808cfe7b2b4dbb6af6396
Created October 12, 2017 23:34
Print variadic template arguments, sepparating by comma.
template <typename... Args>
void printVA(std::ostream& out, Args&&... args)
{
using expander = int[];
(void)expander { (void(out << ',' << std::forward<Args>(args)),0)... };
out << std::endl;
}