
9 Jun
2005
9 Jun
'05
5:32 a.m.
On 6/8/05, Peter Dimov <pdimov@mmltd.net> wrote:
David Abrahams wrote:
Peder Holt <peder.holt@gmail.com> 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