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

Adjustment and fixes for boost-1.36 support

parent b5859862
No related branches found
No related tags found
No related merge requests found
Showing
with 70 additions and 3 deletions
......@@ -33,6 +33,10 @@
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
BOOST_AUTO_UNIT_TEST(main)
{
BOOST_CHECK( true );
}
///////////////////////////////cc.e////////////////////////////////////////
#undef prefix_
......
......@@ -41,6 +41,7 @@ namespace {
int value;
bool operator<(IntAnnotation const & other) const { return value < other.value; }
bool operator==(IntAnnotation const & other) const { return value == other.value; }
IntAnnotation() {}
IntAnnotation(int v) : value(v) {}
IntAnnotation & operator=(int v) { value=v; return *this; }
operator int () const { return value; }
......
......@@ -33,6 +33,10 @@
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
BOOST_AUTO_UNIT_TEST(main)
{
BOOST_CHECK( true );
}
///////////////////////////////cc.e////////////////////////////////////////
#undef prefix_
......
......@@ -33,6 +33,10 @@
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
BOOST_AUTO_UNIT_TEST(main)
{
BOOST_CHECK( true );
}
///////////////////////////////cc.e////////////////////////////////////////
#undef prefix_
......
......@@ -45,7 +45,7 @@ void check_TLVPacket(GenericTLVPacket &tlvPacket, boost::uint8_t type, boost::ui
{
BOOST_CHECK_EQUAL( tlvPacket->type(), type );
BOOST_CHECK_EQUAL( tlvPacket->length(), length );
BOOST_CHECK_EQUAL( tlvPacket->value().size(), length );
BOOST_CHECK_EQUAL( tlvPacket->value().size(), int(length) );
senf::PacketData::iterator dataIterator (tlvPacket->value().begin());
for (unsigned i=0; i<length; i++) {
BOOST_CHECK_EQUAL( *dataIterator, i );
......
......@@ -33,6 +33,10 @@
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
BOOST_AUTO_UNIT_TEST(main)
{
BOOST_CHECK( true );
}
///////////////////////////////cc.e////////////////////////////////////////
#undef prefix_
......
......@@ -33,6 +33,10 @@
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
BOOST_AUTO_UNIT_TEST(main)
{
BOOST_CHECK( true );
}
///////////////////////////////cc.e////////////////////////////////////////
#undef prefix_
......
......@@ -33,6 +33,10 @@
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
BOOST_AUTO_UNIT_TEST(main)
{
BOOST_CHECK( true );
}
///////////////////////////////cc.e////////////////////////////////////////
#undef prefix_
......
......@@ -33,6 +33,10 @@
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
BOOST_AUTO_UNIT_TEST(main)
{
BOOST_CHECK( true );
}
///////////////////////////////cc.e////////////////////////////////////////
#undef prefix_
......
......@@ -283,16 +283,18 @@ BOOST_AUTO_UNIT_TEST(packetAnnotation)
COMPILE_FAIL(invalidAnnotation)
{
#if 0 // The traits check fails for user defined but trivial constructors so ...
# ifdef BOOST_HAS_TYPE_TRAITS_INTRINSICS
senf::Packet packet (FooPacket::create());
(void) packet.annotation<InvalidAnnotation>();
# else
# endif
#endif
invalid_annotation_check_disabled();
# endif
}
#endif
......
......@@ -97,12 +97,14 @@ namespace detail {
static bool const Complex = boost::is_base_of<ComplexAnnotation, Annotation>::value;
static bool const Small = (sizeof(Annotation) <= sizeof(AnnotationEntry) && ! Complex);
# if 0 // The test is difficult since it does not work with user-defined trivial constructors
# ifdef BOOST_HAS_TYPE_TRAITS_INTRINSICS
BOOST_STATIC_ASSERT(( (boost::has_trivial_constructor<Annotation>::value
&& boost::has_trivial_destructor<Annotation>::value)
|| Complex ));
# endif
# endif
};
......
......@@ -34,6 +34,10 @@
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
BOOST_AUTO_UNIT_TEST(main)
{
BOOST_CHECK( true );
}
///////////////////////////////cc.e////////////////////////////////////////
#undef prefix_
......
......@@ -36,7 +36,9 @@
///////////////////////////////cc.p////////////////////////////////////////
BOOST_AUTO_UNIT_TEST(poller)
{}
{
BOOST_CHECK( true );
}
///////////////////////////////cc.e////////////////////////////////////////
#undef prefix_
......
......@@ -33,6 +33,10 @@
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
BOOST_AUTO_UNIT_TEST(main)
{
BOOST_CHECK( true );
}
///////////////////////////////cc.e////////////////////////////////////////
#undef prefix_
......
......@@ -33,6 +33,10 @@
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
BOOST_AUTO_UNIT_TEST(main)
{
BOOST_CHECK( true );
}
///////////////////////////////cc.e////////////////////////////////////////
#undef prefix_
......
......@@ -33,6 +33,10 @@
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
BOOST_AUTO_UNIT_TEST(main)
{
BOOST_CHECK( true );
}
///////////////////////////////cc.e////////////////////////////////////////
#undef prefix_
......
......@@ -33,6 +33,10 @@
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
BOOST_AUTO_UNIT_TEST(main)
{
BOOST_CHECK( true );
}
///////////////////////////////cc.e////////////////////////////////////////
#undef prefix_
......
......@@ -33,6 +33,10 @@
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
BOOST_AUTO_UNIT_TEST(main)
{
BOOST_CHECK( true );
}
///////////////////////////////cc.e////////////////////////////////////////
#undef prefix_
......
......@@ -33,6 +33,10 @@
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
BOOST_AUTO_UNIT_TEST(main)
{
BOOST_CHECK( true );
}
///////////////////////////////cc.e////////////////////////////////////////
#undef prefix_
......
......@@ -33,6 +33,10 @@
#define prefix_
///////////////////////////////cc.p////////////////////////////////////////
BOOST_AUTO_UNIT_TEST(main)
{
BOOST_CHECK( true );
}
///////////////////////////////cc.e////////////////////////////////////////
#undef prefix_
......
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