annotate DEPENDENCIES/generic/include/boost/multi_index/detail/access_specifier.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@101 1 /* Copyright 2003-2013 Joaquin M Lopez Munoz.
Chris@16 2 * Distributed under the Boost Software License, Version 1.0.
Chris@16 3 * (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 4 * http://www.boost.org/LICENSE_1_0.txt)
Chris@16 5 *
Chris@16 6 * See http://www.boost.org/libs/multi_index for library home page.
Chris@16 7 */
Chris@16 8
Chris@16 9 #ifndef BOOST_MULTI_INDEX_DETAIL_ACCESS_SPECIFIER_HPP
Chris@16 10 #define BOOST_MULTI_INDEX_DETAIL_ACCESS_SPECIFIER_HPP
Chris@16 11
Chris@101 12 #if defined(_MSC_VER)
Chris@16 13 #pragma once
Chris@16 14 #endif
Chris@16 15
Chris@16 16 #include <boost/config.hpp>
Chris@16 17 #include <boost/detail/workaround.hpp>
Chris@16 18
Chris@16 19 /* In those compilers that do not accept the member template friend syntax,
Chris@16 20 * some protected and private sections might need to be specified as
Chris@16 21 * public.
Chris@16 22 */
Chris@16 23
Chris@16 24 #if defined(BOOST_NO_MEMBER_TEMPLATE_FRIENDS)
Chris@16 25 #define BOOST_MULTI_INDEX_PROTECTED_IF_MEMBER_TEMPLATE_FRIENDS public
Chris@16 26 #define BOOST_MULTI_INDEX_PRIVATE_IF_MEMBER_TEMPLATE_FRIENDS public
Chris@16 27 #else
Chris@16 28 #define BOOST_MULTI_INDEX_PROTECTED_IF_MEMBER_TEMPLATE_FRIENDS protected
Chris@16 29 #define BOOST_MULTI_INDEX_PRIVATE_IF_MEMBER_TEMPLATE_FRIENDS private
Chris@16 30 #endif
Chris@16 31
Chris@16 32 /* GCC does not correctly support in-class using declarations for template
Chris@16 33 * functions. See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9810
Chris@16 34 * MSVC 7.1/8.0 seem to have a similar problem, though the conditions in
Chris@16 35 * which the error happens are not that simple. I have yet to isolate this
Chris@16 36 * into a snippet suitable for bug reporting.
Chris@16 37 * Sun Studio also has this problem, which might be related, from the
Chris@16 38 * information gathered at Sun forums, with a known issue notified at the
Chris@16 39 * internal bug report 6421933. The bug is present up to Studio Express 2,
Chris@16 40 * the latest preview version of the future Sun Studio 12. As of this writing
Chris@16 41 * (October 2006) it is not known whether a fix will finally make it into the
Chris@16 42 * official Sun Studio 12.
Chris@16 43 */
Chris@16 44
Chris@101 45 #if BOOST_WORKAROUND(__GNUC__,==3)&&(__GNUC_MINOR__<4)||\
Chris@16 46 BOOST_WORKAROUND(BOOST_MSVC,==1310)||\
Chris@16 47 BOOST_WORKAROUND(BOOST_MSVC,==1400)||\
Chris@16 48 BOOST_WORKAROUND(__SUNPRO_CC,BOOST_TESTED_AT(0x590))
Chris@16 49 #define BOOST_MULTI_INDEX_PRIVATE_IF_USING_DECL_FOR_TEMPL_FUNCTIONS public
Chris@16 50 #else
Chris@16 51 #define BOOST_MULTI_INDEX_PRIVATE_IF_USING_DECL_FOR_TEMPL_FUNCTIONS private
Chris@16 52 #endif
Chris@16 53
Chris@16 54 #endif