Boost logo

Boost :

From: Peder Holt (peder.holt_at_[hidden])
Date: 2005-06-09 00:32:55


On 6/8/05, Peter Dimov <pdimov_at_[hidden]> wrote:
> David Abrahams wrote:
> > Peder Holt <peder.holt_at_[hidden]> writes:
> >
> >> (1.0<2.0) yields a compile-time bool,
> >> long(2.0) yield a compile-time long.
> >> On the above compilers, that is.
> >
> > Throw a test at comeau online. If it works there, I'll be amazed.
>
> long(2.0) must work. 1.0 < 2.0 may not. 5.19/1.
given:
template<long I> struct test{};
In strict mode, test<long(2.0)> compiled, test<long(1.0<2.0)> did not.

In relaxed mode, a simple META_DOUBLE test-case compiled without warnings.

Regards,
Peder
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>


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