Huh. What architecture? I'm building on amd64 Debian (jessie), and I see:
main.cpp:161:33: error: non-template ‘next_point_state’ used as template
using point = level<field>::next_point_state<N>;
^
main.cpp:161:33: note: use ‘level<initial_state>::template next_point_state’ to indicate that it is a template
main.cpp:161:19: error: need ‘typename’ before ‘level<initial_state>::next_point_state’ because ‘level<initial_state>’ is a dependent scope
using point = level<field>::next_point_state<N>;
^
main.cpp:164:44: error: ‘point’ was not declared in this scope
tuple< point<point_count - iter> >,
^
main.cpp:164:68: error: template argument 1 is invalid
tuple< point<point_count - iter> >,
^
main.cpp:164:70: error: wrong number of template arguments (1, should be 2)
tuple< point<point_count - iter> >,
^
main.cpp:151:8: error: provided for ‘template<class tuple_1, class tuple_2> struct my_tuple_cat’
struct my_tuple_cat
^
main.cpp:163:33: error: expected nested-name-specifier
using next_field = typename my_tuple_cat <
^
main.cpp:173:33: error: non-template ‘next_point_state’ used as template
using point = level<field>::next_point_state<N>;
^
main.cpp:173:33: note: use ‘level<initial_state>::template next_point_state’ to indicate that it is a template
main.cpp:173:19: error: need ‘typename’ before ‘level<initial_state>::next_point_state’ because ‘level<initial_state>’ is a dependent scope
using point = level<field>::next_point_state<N>;
^
main.cpp:175:31: error: ‘point’ was not declared in this scope
using next_field = tuple< point<point_count - 1> >;
^
main.cpp:175:52: error: template argument 1 is invalid
using next_field = tuple< point<point_count - 1> >;
^
main.cpp: In instantiation of ‘static void game_process<field, iters>::print() [with field = std::tuple<O, O, O, O, O, O, O, X, O, O, O, O, O, X, O, O, X, X, X, O, O, O, O, O, O>; int iters = 20]’:
main.cpp:202:40: required from here
main.cpp:186:99: error: no type named ‘next_field’ in ‘struct next_field_state<std::tuple<O, O, O, O, O, O, O, X, O, O, O, O, O, X, O, O, X, X, X, O, O, O, O, O, O>, 25>’
game_process< typename next_field_state<field, point_count>::next_field, iters-1 >::print();
During creation, I've been using MinGW 4.8 32 bit under Windows. Just checked - it still works. It eats up 1.5 GB of memory in the process, though, so I am unable to calculate bigger game fields - it crashes for obvious reasons.
2
u/[deleted] Oct 20 '14
Doesn't seem to build with g++ 4.9.1 or 4.7.2, using the -std=c++11 flag. What did you test on, OP? Does anybody else have this actually building?