Boost logo

Boost Users :

Subject: Re: [Boost-users] Fwd: Describing "traits" of a class's members
From: Chris Stankevitz (chrisstankevitz_at_[hidden])
Date: 2013-02-27 20:33:55


On Wed, Feb 27, 2013 at 5:13 PM, Steven Watanabe <watanabesj_at_[hidden]> wrote:
> That's actually pretty easy:
>
> typedef boost::variant<
> TSItemImpl<double>,
> TSItemImpl<unsigned> > TSItem;
>
> then use boost::apply_visitor for all
> operations on TSItems.

Steven,

Thank you. I will absorb and attempt to incorporate this approach.
Or I will fail and let you know know how it fails.

Chris


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