// $Id$
//
// Copyright (C) 2007
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
// Stefan Bund <g0dil@berlios.de>
//
// This program is free software; you can redistribute it and/or modify
// Custom includes
#include "mpl.hh"
-#include <boost/test/auto_unit_test.hpp>
+#include "../Utils/auto_unit_test.hh"
#include <boost/test/test_tools.hpp>
#define prefix_
BOOST_CHECK( ! choice<C>::has_class_value );
}
+namespace {
+
+# define Begin() SENF_MPL_SLOT_DEF(accum, 0)
+# define Add(n) SENF_MPL_SLOT_SET(accum, SENF_MPL_SLOT_GET(accum)+n)
+# define End() BOOST_STATIC_CONSTANT(unsigned, total = SENF_MPL_SLOT_GET(accum))
+
+ struct Test
+ {
+ Begin();
+
+ Add(2);
+ Add(2);
+
+ // Here some comment ...
+
+ Add(4);
+
+ End();
+ };
+
+}
+
+BOOST_AUTO_UNIT_TEST(mplSlot)
+{
+ BOOST_CHECK_EQUAL( unsigned(Test::total), 8u );
+}
+
///////////////////////////////cc.e////////////////////////////////////////
#undef prefix_