pair (or template class) in constuctor

Phil Edwards pedwards@disaster.jaj.com
Fri Nov 2 10:47:00 GMT 2001


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



More information about the Libstdc++ mailing list