[ create a new paste ] login | about

Link: http://codepad.org/qo6zkZWS    [ raw code | output | fork ]

mogwai.poet - C++, pasted on Mar 17:
1
2
3
4
5
template <typename T>
void test(std::vector<T> v)
{
  typename decltype(v.begin()) i = v.begin();
}


Output:
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.


Create a new paste based on this one


Comments: