Add Boost.Test karmic valgrind suppressions
[senf.git] / boost_ext / boost / bimap / detail / debug / static_error.hpp
1 // Boost.Bimap
2 //
3 // Copyright (c) 2006-2007 Matias Capeletto
4 //
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8
9 /// \file detail/debug/static_error.hpp
10 /// \brief Formatted compile time error
11
12 #ifndef BOOST_BIMAP_DETAIL_DEBUG_STATIC_ERROR_HPP
13 #define BOOST_BIMAP_DETAIL_DEBUG_STATIC_ERROR_HPP
14
15 #if defined(_MSC_VER) && (_MSC_VER>=1200)
16 #pragma once
17 #endif
18
19 #include <boost/config.hpp>
20
21 #include <boost/mpl/assert.hpp>
22 #include <boost/preprocessor/cat.hpp>
23
24 // Easier way to call BOOST_MPL_ASSERT_MSG in class scope to generate
25 // a static error.
26 /*===========================================================================*/
27 #define BOOST_BIMAP_STATIC_ERROR(MESSAGE,VARIABLES)                           \
28         struct BOOST_PP_CAT(BIMAP_STATIC_ERROR__,MESSAGE) {};                 \
29         BOOST_MPL_ASSERT_MSG(false,                                           \
30                              BOOST_PP_CAT(BIMAP_STATIC_ERROR__,MESSAGE),      \
31                              VARIABLES)
32 /*===========================================================================*/
33
34
35
36 #endif // BOOST_BIMAP_DETAIL_DEBUG_STATIC_ERROR_HPP