Boost logo

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
>> cast_test.cpp, and sure enough there was a defect, both in the
>> implementation and specification.
>> Both have been fixed. See
>Hum... the ``right'' way to write implicit_cast is:
>template <typename To>
>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?


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