Boost logo

Boost Users :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2005-03-16 16:02:12


> What I do not understand is, the "current" variant type seems to be
changed
> at runtime (at assignment), then how can apply_vistor know which
operator()
> to call at compile time?

switch by type index and static cast to appropriate type.

Gennadiy


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