Boost logo

Boost :

From: Valentin Bonnard (Bonnard.V_at_[hidden])
Date: 1999-08-12 12:45:41

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

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.

In other words, implicit_cast should have macro
behaviour, not proper function behaviour.

Valentin Bonnard

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