OKlibrary  0.2.1.6
LibraryBasics_Tests.hpp
Go to the documentation of this file.
00001 // Oliver Kullmann, 25.5.2005 (Swansea)
00002 /* Copyright 2005 - 2007 Oliver Kullmann
00003 This file is part of the OKlibrary. OKlibrary is free software; you can redistribute
00004 it and/or modify it under the terms of the GNU General Public License as published by
00005 the Free Software Foundation and included in this library; either version 3 of the
00006 License, or any later version. */
00007 
00013 #ifndef LIBRARYBASICSTESTS_rttjkN00
00014 #define LIBRARYBASICSTESTS_rttjkN00
00015 
00016 #include <boost/static_assert.hpp>
00017 #include <boost/type_traits.hpp>
00018 // This file is guaranteed to include the last two files, so that OKLIB_BASIC_CONCEPT_TEST always works.
00019 
00020 #include <OKlib/Concepts/ConceptsMetafunctions.hpp>
00021 
00022 namespace OKlib {
00023 
00024   namespace Concepts {
00025 
00031     namespace ConceptTests {
00032 
00038 #define OKLIB_BASIC_CONCEPT_TEST_TAG(concept) BOOST_STATIC_ASSERT(OKlib::Concepts::IsConceptTag< concept ## _tag >::value);
00039 
00045 #define OKLIB_BASIC_CONCEPT_TEST_ARCHETYPE(concept) template class concept< concept ## _Archetype >;
00046 
00047     }
00048   }
00049 }
00050 
00051 #endif