Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
prog.cc:75:18: warning: unused parameter '_Member' [-Wunused-parameter]
void InitVar(T& _Member) {}
^
prog.cc:78:35: warning: unused parameter '_Member' [-Wunused-parameter]
void InitVar(var_t<T, Assemble>& _Member)
^
prog.cc:88:8: error: cannot form a reference to 'void'
auto& member = get<N-1>(_Struct);
^
prog.cc:107:3: note: in instantiation of function template specialization 'InitStruct<4, A, true>' requested here
InitStruct<N, T, Assemble>(_Struct);
^
prog.cc:130:2: note: in instantiation of function template specialization 'InitializeStruct<A, true>' requested here
InitializeStruct<A, true>(a);
^
prog.cc:88:8: error: cannot form a reference to 'void'
auto& member = get<N-1>(_Struct);
^
prog.cc:98:5: note: in instantiation of function template specialization 'InitStruct<3, A, true>' requested here
InitStruct<N - 1, T, Assemble>(_Struct);
^
prog.cc:107:3: note: in instantiation of function template specialization 'InitStruct<4, A, true>' requested here
InitStruct<N, T, Assemble>(_Struct);
^
prog.cc:130:2: note: in instantiation of function template specialization 'InitializeStruct<A, true>' requested here
InitializeStruct<A, true>(a);
^
prog.cc:88:8: error: cannot form a reference to 'void'
auto& member = get<N-1>(_Struct);
^
prog.cc:98:5: note: in instantiation of function template specialization 'InitStruct<2, A, true>' requested here
InitStruct<N - 1, T, Assemble>(_Struct);
^
prog.cc:98:5: note: in instantiation of function template specialization 'InitStruct<3, A, true>' requested here
prog.cc:107:3: note: in instantiation of function template specialization 'InitStruct<4, A, true>' requested here
InitStruct<N, T, Assemble>(_Struct);
^
prog.cc:130:2: note: in instantiation of function template specialization 'InitializeStruct<A, true>' requested here
InitializeStruct<A, true>(a);
^
prog.cc:88:8: error: cannot form a reference to 'void'
auto& member = get<N-1>(_Struct);
^
prog.cc:98:5: note: in instantiation of function template specialization 'InitStruct<1, A, true>' requested here
InitStruct<N - 1, T, Assemble>(_Struct);
^
prog.cc:98:5: note: in instantiation of function template specialization 'InitStruct<2, A, true>' requested here
prog.cc:98:5: note: in instantiation of function template specialization 'InitStruct<3, A, true>' requested here
prog.cc:107:3: note: in instantiation of function template specialization 'InitStruct<4, A, true>' requested here
InitStruct<N, T, Assemble>(_Struct);
^
prog.cc:130:2: note: in instantiation of function template specialization 'InitializeStruct<A, true>' requested here
InitializeStruct<A, true>(a);
^
2 warnings and 4 errors generated.
Exit Code:
1