BWAPI
|
00001 // Copyright (c) 2007 Max-Planck-Institute Saarbruecken (Germany). 00002 // All rights reserved. 00003 // 00004 // This file is part of CGAL (www.cgal.org); you can redistribute it and/or 00005 // modify it under the terms of the GNU Lesser General Public License as 00006 // published by the Free Software Foundation; version 2.1 of the License. 00007 // See the file LICENSE.LGPL distributed with CGAL. 00008 // 00009 // Licensees holding a valid commercial license may use this file in 00010 // accordance with the commercial license agreement provided with the software. 00011 // 00012 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00013 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00014 // 00015 // $URL: svn+ssh://scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.5-branch/STL_Extension/include/CGAL/type_traits.h $ 00016 // $Id: type_traits.h 50707 2009-07-20 08:52:20Z spion $ 00017 // 00018 // Author(s) : Andreas Meyer 00019 00020 #ifndef CGAL_TYPE_TRAITS_H 00021 #define CGAL_TYPE_TRAITS_H 00022 00023 #include <boost/type_traits/is_same.hpp> 00024 #include <boost/type_traits/is_base_and_derived.hpp> 00025 #include <boost/mpl/or.hpp> 00026 00027 namespace CGAL { 00028 00029 template< class Base, class Derived > 00030 struct is_same_or_derived : 00031 public ::boost::mpl::or_< 00032 ::boost::is_same< Base, Derived >, 00033 ::boost::is_base_and_derived< Base, Derived > 00034 >::type 00035 {}; 00036 00037 }; 00038 00039 #endif