Chris@16: // Boost.Bimap Chris@16: // Chris@16: // Copyright (c) 2006-2007 Matias Capeletto Chris@16: // Chris@16: // Distributed under the Boost Software License, Version 1.0. Chris@16: // (See accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: /// \file detail/debug/static_error.hpp Chris@16: /// \brief Formatted compile time error Chris@16: Chris@16: #ifndef BOOST_BIMAP_DETAIL_DEBUG_STATIC_ERROR_HPP Chris@16: #define BOOST_BIMAP_DETAIL_DEBUG_STATIC_ERROR_HPP Chris@16: Chris@101: #if defined(_MSC_VER) Chris@16: #pragma once Chris@16: #endif Chris@16: Chris@16: #include Chris@16: Chris@16: #include Chris@16: #include Chris@16: Chris@16: // Easier way to call BOOST_MPL_ASSERT_MSG in class scope to generate Chris@16: // a static error. Chris@16: /*===========================================================================*/ Chris@16: #define BOOST_BIMAP_STATIC_ERROR(MESSAGE,VARIABLES) \ Chris@16: struct BOOST_PP_CAT(BIMAP_STATIC_ERROR__,MESSAGE) {}; \ Chris@16: BOOST_MPL_ASSERT_MSG(false, \ Chris@16: BOOST_PP_CAT(BIMAP_STATIC_ERROR__,MESSAGE), \ Chris@16: VARIABLES) Chris@16: /*===========================================================================*/ Chris@16: Chris@16: Chris@16: Chris@16: #endif // BOOST_BIMAP_DETAIL_DEBUG_STATIC_ERROR_HPP