From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-01-31 08:58:13
One thought I had:
Isn't it true that anything convertible from float is also convertible from
When the first argument is a floating type, we could check to see whether
int is convertible to the 2nd argument.
There might be issues here with reference parameters; I don't know.
----- Original Message -----
From: "John Maddock" <John_Maddock_at_[hidden]>
Sent: Thursday, January 31, 2002 7:35 AM
Subject: [boost] Patch: is_convertible with builtin numeric types and gcc
> >However, this really only covers about 95% of the cases, since any UDT
> >an implicit conversion from int will still generate the warnings. It
> >be really nice to find a more general fix. Can anyone think of one?
> I don't think so, if the conversion is allowed, but dangerous, then a
> warning is going to be generated, unless you can suppress it with a
> or something.
> - John Maddock
> Info: http://www.boost.org Send unsubscribe requests to:
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk