|
Boost : |
From: Beman Dawes (beman_at_[hidden])
Date: 1999-08-12 16:13:51
At 07:45 PM 8/12/99 +0200, Valentin Bonnard wrote:
>Beman Dawes wrote:
>
>> An email from Kevlin Henney caused me to add negative number tests
to
>> cast_test.cpp, and sure enough there was a defect, both in the
>> implementation and specification.
>>
>> Both have been fixed. See http://www.boost.org/libs/utility
>
>Hum... the ``right'' way to write implicit_cast is:
>
>template <typename To>
>inline
>To implicit_cast (To x)
>{ return x; }
>
>Otherwise the implicit cast is down in the scope and
>with the priviledges of implicit_cast.
I'm don't understand what you mean by "priviledges".
>In other words, implicit_cast should have macro
>behaviour, not proper function behaviour.
Could you give an example where it matters?
--Beman
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk