//clang 3.7.0
#include <iostream>
#include <utility>
template <typename T>
int newLine(T)
{
std::wcout << std::endl;
return 0;
}
template <size_t... Pack>
void expandPack(std::index_sequence<Pack...>)
int dummy[sizeof...(Pack)] = { newLine(Pack)... };
template <size_t N>
void generateNewLines()
return expandPack(std::make_index_sequence<N>{});
int main()
std::cout << "Hello, world!";
generateNewLines<5>();
clang++