Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2006-01-25 15:12:23

"Andy Little" <andy_at_[hidden]> writes:

> I'm joking of course. I think it really needs someone who knows a
> bit about the details for this two phase conversion thingy to write
> a bit of documentation and put it in say <libs/conversion/cast.htm>

2-phase conversion?

> For myself I know what it does, but dont know how to describe it,
> else i'd write it.

It's simple: it's a cast you use when the source type is implicitly
convertible to the target type, to force the implicit conversion.
It's less liberal than static_cast, which will convert in the opposite

Where's the mystery?

Dave Abrahams
Boost Consulting

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