1 2 3 4 5
template <typename T> void test(std::vector<T> v) { typename decltype(v.begin()) i = v.begin(); }
1 2 3
In function 'void test(__gnu_debug_def::vector<_Tp, std::allocator<_CharT> >)': Line 4: error: invalid type in declaration before '(' token compilation terminated due to -Wfatal-errors.