Boost logo

Boost :

From: John Maddock (John_Maddock_at_[hidden])
Date: 1999-09-19 06:08:42

> template <class T, class U> inline T narrow_cast(U);
    template <class T, class U> inline T unsigned_cast(U);<

Doesn't numeric_cast already do want you want for narrow_cast<> ?

I would agree with the idea for unsigned_cast though, for template code it
is often necessary to convert some charT to its unsigned equivalent (for
array lookup), currently I've used the traits technique to handle this
(since I had a traits class anyway), but some well defined cast would be as


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