Boost logo

Boost Users :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2006-03-10 17:29:19


> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Scott Meyers
> Sent: Friday, March 10, 2006 2:04 PM
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] Syntax of get for Variant and
> any_cast for Any
> My only other knowledge of "get" is from tuple, where "get"
> takes a compile-time
> constant, not a type, as an argument. With that background,
> I found the use of
> "get" for variant initially confusing. I think it'd be
> better to find a name
> with the "_cast" suffix and to explicitly specify pointer and
> reference types
> (as with dynamic_cast) and adopt that convention. I don't
> know enough about the
> various Boost libraries to know whether that is a reasonable
> suggestion.

I think shared_ptr has dynamic_pointer_cast or something. This is much
easier to read than get


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net