Skip to content
Snippets Groups Projects
Commit de9da75d authored by g0dil's avatar g0dil
Browse files

Packets: BUGFIX: Fix VectorParser AuxPolicy access

parent a3336175
No related branches found
No related tags found
No related merge requests found
......@@ -173,7 +173,7 @@ prefix_ void senf::VectorParser<ElementParser,AuxPolicy>::resize(size_type n, Va
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()))
{}
......
......@@ -129,7 +129,7 @@ namespace senf {
*/
template <class ElementParser, class AuxPolicy>
class VectorParser_Container
: private AuxPolicy
: private AuxPolicy::WrapperPolicy
{
public:
///////////////////////////////////////////////////////////////////////////
......
......@@ -262,9 +262,6 @@ BOOST_AUTO_UNIT_TEST(vectorMacro_parse)
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);
......@@ -285,7 +282,6 @@ BOOST_AUTO_UNIT_TEST(vectorMacro_create)
0x0D, 0x0E }; // vec2[1]
BOOST_CHECK( equal( p.data().begin(), p.data().end(), data ));
*/
}
///////////////////////////////cc.e////////////////////////////////////////
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment