Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Jonas Nygren
Mon, 17 Aug 1992 08:14
template, constructor call
Author: Jonas Nygren
Date: Mon, 17 Aug 1992 08:14
Date: Mon, 17 Aug 1992 08:14
22 lines
696 bytes
696 bytes
Having a class X
class X { public: class X(X&) {} };
and a template
template<class T> class Y {
T *p;
public:
void set(T &r) { p->T::T(r); }
};
the following wont work
Y<X> yx;
X x;
yx.set(x);
gcc will complain 'no function T in X'.
/jonas
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads