This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pair (or template class) in constuctor

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]