|
Boost Users : |
Subject: Re: [Boost-users] Boost.Variant: Passing visitor as a function argument
From: OvermindDL1 (overminddl1_at_[hidden])
Date: 2009-09-04 01:01:17
>>   void  visit(boost::static_visitor<> const& visitor)
>> Â Â {
>> Â Â Â Â BOOST_FOREACH(Attr attr, i_attrList)
>> Â Â Â Â {
>> Â Â Â Â Â Â boost::apply_visitor(visitor, attr);
>> Â Â Â Â }
>> Â Â }
Just for note, but considering that you are asking for a static_vistor
directly, and you create a visitor by using the CRTP, this shows that
you might want to learn a little bit more about how C++ handles
classes before delving into too much more.
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