Thu, 22 Aug 2013 20:39:26 +0300
Apparently CMake requires the moc files to be compiled separately.. qt4_wrap_cpp does nothing if I don't include the results in the executable... why?
int Accumulate() { return 0; } template<typename T, typename... Ts> int Accumulate(T v, Ts... vs) { return v + Accumulate(vs...); } template<int... Is> int CountElements() { return sizeof...(Is); } int main() { int acc = Accumulate(1, 2, 3, 4, -5); int count = CountElements<1,2,3,4,5>(); return ((acc == 5) && (count == 5)) ? 0 : 1; }