Boost logo

Boost Users :

Subject: Re: [Boost-users] Hierarchical enumeration?
From: Kevin Kassil (k.kassil_at_[hidden])
Date: 2009-09-21 10:44:04


Since your types are known at compile time, I think this belongs to
the class of problems that systems programmers would traditionally
solve with bit masks.

> What you're looking for seems to be dynamic_cast.

But I think you're seeking a solution with more explicit support from
the language.  Yes if you lay it out as a class hierarchy then I agree
with Mathias that dynamic_cast should work well.

Kevin


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