3 // Copyright (c) 2006-2007 Matias Capeletto
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)
10 /// \file relation/detail/static_access_builder.hpp
11 /// \brief Define macros to help building metafunctions
13 #ifndef BOOST_BIMAP_RELATION_DETAIL_STATIC_ACCESS_BUILDER_HPP
14 #define BOOST_BIMAP_RELATION_DETAIL_STATIC_ACCESS_BUILDER_HPP
16 #if defined(_MSC_VER) && (_MSC_VER>=1200)
20 #include <boost/config.hpp>
22 #include <boost/bimap/relation/support/is_tag_of_member_at.hpp>
23 #include <boost/bimap/detail/debug/static_error.hpp>
24 #include <boost/utility/enable_if.hpp>
25 #include <boost/preprocessor/cat.hpp>
29 /******************************************************************************
30 BIMAP SYMMETRIC STATIC ACCESS INTERFACE
31 *******************************************************************************
33 template< class Tag, class SYMETRIC_TYPE >
39 ******************************************************************************/
42 /*===========================================================================*/
43 #define BOOST_BIMAP_SYMMETRIC_STATIC_ACCESS_BUILDER( \
54 class SYMMETRIC_TYPE, \
59 BOOST_BIMAP_STATIC_ERROR( \
60 BOOST_PP_CAT(NAME,_FAILURE), \
61 (SYMMETRIC_TYPE,Tag) \
65 template< class Tag, class SYMMETRIC_TYPE > \
68 Tag, SYMMETRIC_TYPE, \
69 BOOST_DEDUCED_TYPENAME enable_if \
71 ::boost::bimaps::relation::support::is_tag_of_member_at_left \
83 template< class Tag, class SYMMETRIC_TYPE > \
86 Tag, SYMMETRIC_TYPE, \
87 BOOST_DEDUCED_TYPENAME enable_if \
89 ::boost::bimaps::relation::support::is_tag_of_member_at_right \
100 /*===========================================================================*/
103 #endif // BOOST_BIMAP_RELATION_DETAIL_STATIC_ACCES_BUILDER_HPP