Boost Users :
From: Mateusz Åoskot (mateusz_at_[hidden])
Date: 2006-01-09 09:32:00
Edward Diener wrote:
> Mateusz Åoskot wrote:
>>Usually, in this case I'd use union of int,double and char*.
>>But I'd like to solve it a better way, more C++ than C.
>>So, would you recommend boost::any as a type of field value?
> The boost::any class is more of a modern replacement for void * than it
> is for a discrete set of types which are usually placed in a union. Try
> boost::variant for the latter.
Unfortunately, Boost.Variant can not be compiled by eVC++ 4.0 :-(
I think I have to do some magic with Boost.Any, because this one
works with eVC++.
eVC++ does not support many newer template specialization features.
-- Mateusz Åoskot http://mateusz.loskot.net
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