annotate DEPENDENCIES/generic/include/boost/bimap/detail/debug/static_error.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents c530137014c0
children
rev   line source
Chris@16 1 // Boost.Bimap
Chris@16 2 //
Chris@16 3 // Copyright (c) 2006-2007 Matias Capeletto
Chris@16 4 //
Chris@16 5 // Distributed under the Boost Software License, Version 1.0.
Chris@16 6 // (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 7 // http://www.boost.org/LICENSE_1_0.txt)
Chris@16 8
Chris@16 9 /// \file detail/debug/static_error.hpp
Chris@16 10 /// \brief Formatted compile time error
Chris@16 11
Chris@16 12 #ifndef BOOST_BIMAP_DETAIL_DEBUG_STATIC_ERROR_HPP
Chris@16 13 #define BOOST_BIMAP_DETAIL_DEBUG_STATIC_ERROR_HPP
Chris@16 14
Chris@101 15 #if defined(_MSC_VER)
Chris@16 16 #pragma once
Chris@16 17 #endif
Chris@16 18
Chris@16 19 #include <boost/config.hpp>
Chris@16 20
Chris@16 21 #include <boost/mpl/assert.hpp>
Chris@16 22 #include <boost/preprocessor/cat.hpp>
Chris@16 23
Chris@16 24 // Easier way to call BOOST_MPL_ASSERT_MSG in class scope to generate
Chris@16 25 // a static error.
Chris@16 26 /*===========================================================================*/
Chris@16 27 #define BOOST_BIMAP_STATIC_ERROR(MESSAGE,VARIABLES) \
Chris@16 28 struct BOOST_PP_CAT(BIMAP_STATIC_ERROR__,MESSAGE) {}; \
Chris@16 29 BOOST_MPL_ASSERT_MSG(false, \
Chris@16 30 BOOST_PP_CAT(BIMAP_STATIC_ERROR__,MESSAGE), \
Chris@16 31 VARIABLES)
Chris@16 32 /*===========================================================================*/
Chris@16 33
Chris@16 34
Chris@16 35
Chris@16 36 #endif // BOOST_BIMAP_DETAIL_DEBUG_STATIC_ERROR_HPP