template <class ElementParser, class AuxPolicy>
prefix_ senf::VectorParser_Container<ElementParser,AuxPolicy>::
VectorParser_Container(parser_type const & vector)
- : AuxPolicy(vector), state_ (vector.state()),
+ : AuxPolicy::WrapperPolicy(static_cast<AuxPolicy const &>(vector)), state_ (vector.state()),
i_ (std::distance(data().begin(),vector.i()))
{}
*/
template <class ElementParser, class AuxPolicy>
class VectorParser_Container
- : private AuxPolicy
+ : private AuxPolicy::WrapperPolicy
{
public:
///////////////////////////////////////////////////////////////////////////
BOOST_AUTO_UNIT_TEST(vectorMacro_create)
{
- /*
- * This test fails with "... is an inaccessible base of ..." error
- * see bugtracker @ berlios
TestVectorPacket p (TestVectorPacket::create());
p->dummy() = 0x01020304u;
p->vec1().push_back( 0x0506u);
0x0D, 0x0E }; // vec2[1]
BOOST_CHECK( equal( p.data().begin(), p.data().end(), data ));
- */
}
///////////////////////////////cc.e////////////////////////////////////////