|
Boost : |
Subject: Re: [boost] [conversion] Motivation for two NEW generic conver_to and assign_to functions
From: Jeffrey Bosboom (jbosboom_at_[hidden])
Date: 2009-10-26 17:04:38
Stewart, Robert wrote:
> I fail to understand why
>
> convert_to(b, type_tag<A>())
>
> is acceptable and
>
> convert_to<A>(b)
>
> is not in any circumstance.
For what it's worth, I strongly prefer the syntax of the latter -- it
works just like the built-in new-style casts and boost::lexical_cast.
--Jeffrey Bosboom
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk