[KLUG Members] ISO C++ forbids

Peter Buxton members@kalamazoolinux.org
Mon, 5 Aug 2002 10:29:01 -0400


--pf9I7BMVVzbSWLtt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Aug 05, 2002 at 06:38:40AM -0400, Adam Williams wrote:

> I'm getting the following error:
> extint.cpp:8: ISO C++ forbids defining types within return type
> extint.cpp:8: return type specification for constructor invalid

You might be getting a spurious error message triggered by real
problems but obscured by trivial ones.

> using namespace std;
> class extint {
>   public:
>     extint();
>     extint(int v);

Why not add 'void' returns to these functions?

--=20
http://killdevil.ath.cx/~peter (/gpg.html)
[The Basement Tapes were] like the Watergate tapes... Bob
would say, 'We should destroy this.' -- Robbie Robertson

--pf9I7BMVVzbSWLtt
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9ToutaAK8ZwqLoskRAn79AKCY8n+0gKkCdod4Z55E1l8fZi9bFACgg/zO
BHGLuHQ0oG0XL4TiRNWbCF8=
=Jmg+
-----END PGP SIGNATURE-----

--pf9I7BMVVzbSWLtt--