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