blob: 29b4281c76edfc00822aecf2b88158490d9d39dc (
plain)
1
2
3
4
5
6
7
8
9
|
// Build don't link:
template <class T = int>
struct A { const T x; A() : x(0) { } A(T x) : x(x) { } };
template <class B>
void func () { B y; y = B(); } // ERROR - can't use default assignment
int main (void) { func< A<> >(); } // ERROR - instantiated from here
|