Mail Archives: djgpp/1997/05/04/10:15:00
In article <def_9704300120 AT exonet DOT nl>, dennis AT qltel DOT exonet DOT nl says...
>
>Where can I find a list of error-message generated by the compiler and
>there explaination? And the possible sollutions?
>
>In particular I'm looking for the reason thats causing a "return type
>specification for constructor invalid" in a very simple class.
>
> Dennis!
You have tried to specify a return type for a constructor, which
is illegal (not even type void is permitted):
class Foo {
Foo(int bar); // correct
void Foo(int bar); // illegal, there can be no return type.
};
----------------------------------------------------------- - - -
Roland Nilsson, Pitea, SWEDEN
--/ member of the \--
--( Avante OS Development Group )--
--\ (project coordinator) /--
Visit us at >> http://mediaport.org/~wierdo <<
- Raw text -