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
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]>
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
> >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: Send unsubscribe requests to:
> Your use of Yahoo! Groups is subject to

Boost list run by bdawes at, gregod at, cpdaniel at, john at