Boost logo

Boost :

From: Daniel Frey (daniel.frey_at_[hidden])
Date: 2003-01-30 03:32:11


Rani Sharoni wrote:
>
> > Compiler: GNU C++ version 3.2 20020927 (prerelease)

I also tried the GCC 3.2.1, but without success. It compiles, but it
gives the wrong results.

> > Any ideas, or results from other compilers?

AFAICS the Intel 7 works fine.

> I was able to complie the attached code (with minor improvment) using strict
> Comeau and VC7.1 and boost 1.29.0.

One point about the implementation: The getC()-function isn't necessary,
as you are in control of the class C, you know it has an accessible
default ctor and thus you can call check(C()) directly. I don't know if
there are any compilers which might benefit from that (I actually doubt
it), but anyway...

Regards, Daniel

-- 
Daniel Frey
aixigo AG - financial training, research and technology
Schloß-Rahe-Straße 15, 52072 Aachen, Germany
fon: +49 (0)241 936737-42, fax: +49 (0)241 936737-99
eMail: daniel.frey_at_[hidden], web: http://www.aixigo.de

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk