#include #include using namespace std; template inline constexpr int sum_sequence() { return (0 + ... + Rest); } /* First instantiated from: insights.cpp:19 */ #ifdef INSIGHTS_USE_TEMPLATE template<> inline constexpr int sum_sequence<1, 2, 5, 6>() { return (((0 + 1) + 2) + 5) + 6; } #endif int main() { int result = sum_sequence<1, 2, 5, 6>(); std::operator<<(std::cout, "result:").operator<<(result).operator<<(std::endl); return 0; }