This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: pair (or template class) in constuctor
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- To: Levente Farkas <lfarkas at mindmaker dot hu>
- Cc: STDC++ <libstdc++ at sources dot redhat dot com>, GCC-Bugs <gcc-bugs at gcc dot gnu dot org>
- Date: Fri, 16 Nov 2001 08:51:00 -0500
- Subject: Re: pair (or template class) in constuctor
- References: <3BF5181A.49EA4A51@mindmaker.hu>
[Get raw message]
On Fri, Nov 16, 2001 at 02:43:54PM +0100, Levente Farkas wrote:
> hi,
> May be it's not a stdc++ question, but why the first type of constructor
> do not compile with g++? and why the second compile?
> -------------------
> include <utility>
When I tried your code, the missing '#' in '#include' was the only error.
If you're seeing an error, you need to report the compiler version, and
*give the text of the error*. The code worked fine for me using 3.0.2.
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams