Re: [Boost-users] Syntax of get for Variant and any_cast for Any
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Scott Meyers Sent: Friday, March 10, 2006 2:04 PM To: boost-users@lists.boost.org 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
participants (1)
-
Sohail Somani