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

Fix test case for g++-4

parent 1d75dbfc
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ namespace test { ...@@ -40,7 +40,7 @@ namespace test {
virtual ~Base() {} virtual ~Base() {}
}; };
template <class C, unsigned N> template <class C, int N>
struct Foo : public Base struct Foo : public Base
{}; {};
...@@ -51,11 +51,10 @@ BOOST_AUTO_UNIT_TEST(prettyName) ...@@ -51,11 +51,10 @@ BOOST_AUTO_UNIT_TEST(prettyName)
{ {
typedef test::Foo< test::Foo<test::Blub, 1>, 10> TestType; typedef test::Foo< test::Foo<test::Blub, 1>, 10> TestType;
TestType ob; TestType ob;
// test::Base const & baseOb(ob); test::Base const & baseOb(ob);
BOOST_CHECK_EQUAL( satcom::lib::prettyName(typeid(int)), "int"); BOOST_CHECK_EQUAL( satcom::lib::prettyName(typeid(int)), "int");
// The exact representation is compiler version dependent ... BOOST_CHECK_EQUAL( satcom::lib::prettyName(typeid(baseOb)), "test::Foo<test::Foo<test::Blub, 1>, 10>" );
// BOOST_CHECK_EQUAL( satcom::lib::prettyName(typeid(baseOb)), "test::Foo<test::Foo<test::Blub, 1>, 10>" );
} }
///////////////////////////////cc.e//////////////////////////////////////// ///////////////////////////////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