|
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
____________________________________________________________
Kevlin Henney phone: +44 117 942 2990
mailto:kevlin_at_[hidden] mobile: +44 7801 073 508
http://www.curbralan.com fax: +44 870 052 2289
Curbralan: Consultancy + Training + Development + Review
____________________________________________________________
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk