Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 25, 2015, 11:33:05 AM (9 years ago)
Author:
landauf
Message:

added static assertions to validate the type of certain templates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/core/class/Identifier.h

    r10422 r10466  
    8080#include <typeinfo>
    8181#include <loki/TypeTraits.h>
     82#include <boost/static_assert.hpp>
     83#include <boost/type_traits/is_base_of.hpp>
    8284
    8385#include "util/Output.h"
     
    257259    class ClassIdentifier : public Identifier
    258260    {
     261        BOOST_STATIC_ASSERT(boost::is_base_of<Identifiable, T>::value);
     262
    259263        #ifndef DOXYGEN_SHOULD_SKIP_THIS
    260264          #define SUPER_INTRUSIVE_DECLARATION_INCLUDE
Note: See TracChangeset for help on using the changeset viewer.