Boost logo

Boost :

From: Kevlin Henney (kevlin_at_[hidden])
Date: 2001-07-20 10:13:43

> From: "Corwin Joy" <cjoy_at_[hidden]>
>I have uploaded to the boost website a set of files for registering and
>performing conversion casts with an 'any' object into the folder any_ccast.
>This can be done without making modifications to the current 'any'
>structure. The syntax for this cast looks like this:

This seems to be a potentially useful direction for the conversions
library in general. For instance, a customisable conversion from A to B,
with any as a specific example of implementation.

>any_ccast ('any' converting cast)
>template<typename ValueType>
> ValueType any_ccast(const any & operand);

Perhaps a different name, which kind of leads into... have you
investigated the possibility of generalising the mechanism beyond any as
the source type?


  Kevlin Henney phone: +44 117 942 2990
  mailto:kevlin_at_[hidden] mobile: +44 7801 073 508 fax: +44 870 052 2289
  Curbralan: Consultancy + Training + Development + Review

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