00001 // ======================================================================================== 00002 // ApproxMVBB 00003 // Copyright (C) 2014 by Gabriel Nützi <nuetzig (at) imes (d0t) mavt (d0t) ethz (døt) ch> 00004 // 00005 // This Source Code Form is subject to the terms of the Mozilla Public 00006 // License, v. 2.0. If a copy of the MPL was not distributed with this 00007 // file, You can obtain one at http://mozilla.org/MPL/2.0/. 00008 // ======================================================================================== 00009 00010 #ifndef ApproxMVBB_Common_StaticAssert_hpp 00011 #define ApproxMVBB_Common_StaticAssert_hpp 00012 00013 00014 #include <type_traits> 00015 00016 namespace ApproxMVBB{ 00017 #define ApproxMVBB_STATIC_ASSERT(B) static_assert( B , "no message"); 00018 #define ApproxMVBB_STATIC_ASSERTM(B,COMMENT) static_assert( B , COMMENT); 00019 } 00020 00021 00022 00023 #endif