🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Eric Fri, 19 Apr 1996 14:46
template bug?
#943
Author: Eric
Date: Fri, 19 Apr 1996 14:46
29 lines
757 bytes
Given the following code:


	template <class T>
	class C {
	      typedef C<T>* CPTR;
	   public:
	      int func( CPTR );
	};

	template <class T>
	int C<T>::func( C<T>::CPTR cp )
	{
	   return 0;
	}


I get the following warnings/errors:

	test.cc:10: incomplete type `C<...>' does not have member `CPTR'
	test.cc:10: parse error before `)'


The same code compiles fine without the template stuff removed.

What gives?

--
Eric
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