Boost logo

Boost Users :

From: Alan M. Carroll (amc_at_[hidden])
Date: 2006-04-17 09:14:20


I would look at Boost.Variant and see if that would work for you. Any is designed primarily for libraries that need to carry data for clients and give it back later without having to know anything about the type.

At 08:36 PM 4/16/2006, you wrote:
> Any ideas on how to store the type of an object stored in an any instance for later use in comparisons (like <, >, ==, etc)? I don't want to store an instance of the class unless necessary. I thought about storing a pointer to the type, but could that be used with any_cast?


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