Boost logo

Boost :

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
int?
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.

-Dave

----- Original Message -----
From: "John Maddock" <John_Maddock_at_[hidden]>
To: <boost_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
> with
> >an implicit conversion from int will still generate the warnings. It
would
> >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
#pragma
> or something.
>
>
> - John Maddock
> http://ourworld.compuserve.com/homepages/john_maddock/
>
> Info: http://www.boost.org Send unsubscribe requests to:
<mailto:boost-unsubscribe_at_[hidden]>
>
> 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