Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:42:06

0001 /* Copyright 2003-2013 Joaquin M Lopez Munoz.
0002  * Distributed under the Boost Software License, Version 1.0.
0003  * (See accompanying file LICENSE_1_0.txt or copy at
0004  * http://www.boost.org/LICENSE_1_0.txt)
0005  *
0006  * See http://www.boost.org/libs/multi_index for library home page.
0007  */
0008 
0009 #ifndef BOOST_MULTI_INDEX_DETAIL_ACCESS_SPECIFIER_HPP
0010 #define BOOST_MULTI_INDEX_DETAIL_ACCESS_SPECIFIER_HPP
0011 
0012 #if defined(_MSC_VER)
0013 #pragma once
0014 #endif
0015 
0016 #include <boost/config.hpp>
0017 #include <boost/detail/workaround.hpp>
0018 
0019 /* In those compilers that do not accept the member template friend syntax,
0020  * some protected and private sections might need to be specified as
0021  * public.
0022  */
0023 
0024 #if defined(BOOST_NO_MEMBER_TEMPLATE_FRIENDS)
0025 #define BOOST_MULTI_INDEX_PROTECTED_IF_MEMBER_TEMPLATE_FRIENDS public
0026 #define BOOST_MULTI_INDEX_PRIVATE_IF_MEMBER_TEMPLATE_FRIENDS public
0027 #else
0028 #define BOOST_MULTI_INDEX_PROTECTED_IF_MEMBER_TEMPLATE_FRIENDS protected
0029 #define BOOST_MULTI_INDEX_PRIVATE_IF_MEMBER_TEMPLATE_FRIENDS private
0030 #endif
0031 
0032 /* GCC does not correctly support in-class using declarations for template
0033  * functions. See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9810
0034  * MSVC 7.1/8.0 seem to have a similar problem, though the conditions in
0035  * which the error happens are not that simple. I have yet to isolate this
0036  * into a snippet suitable for bug reporting.
0037  * Sun Studio also has this problem, which might be related, from the
0038  * information gathered at Sun forums, with a known issue notified at the
0039  * internal bug report 6421933. The bug is present up to Studio Express 2,
0040  * the latest preview version of the future Sun Studio 12. As of this writing
0041  * (October 2006) it is not known whether a fix will finally make it into the
0042  * official Sun Studio 12.
0043  */
0044 
0045 #if BOOST_WORKAROUND(__GNUC__,==3)&&(__GNUC_MINOR__<4)||\
0046     BOOST_WORKAROUND(BOOST_MSVC,==1310)||\
0047     BOOST_WORKAROUND(BOOST_MSVC,==1400)||\
0048     BOOST_WORKAROUND(__SUNPRO_CC,BOOST_TESTED_AT(0x590))
0049 #define BOOST_MULTI_INDEX_PRIVATE_IF_USING_DECL_FOR_TEMPL_FUNCTIONS public
0050 #else
0051 #define BOOST_MULTI_INDEX_PRIVATE_IF_USING_DECL_FOR_TEMPL_FUNCTIONS private
0052 #endif
0053 
0054 #endif