Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3042

Why doesn't this code compile?

$
0
0
Not my code and I haven't used templates much. These two lines

template <class U>
static yes_type test(U&, decltype(U(source<U>()))* = 0);

give the error
Error C2760 syntax error: unexpected token ')', expected 'expression'

Thanks.

Viewing all articles
Browse latest Browse all 3042

Trending Articles