
Joaquín Mª López Muñoz
Prashant Thakre ha escrito:
Hi, OS: SunOS 5.10
CC -V CC: Sun C++ 5.8 Patch 121017-04 2006/08/02 I am trying to compile composite_keys.cpp with Sun Studio 11. After
applying
all the patches listed at http://developers.sun.com/prodtech/cc/downloads/ patches/ss11_patches.html, http://blogs.sun.com/roller/resources/sga/ boost_1_33_1.patch and following instructions listed at http:// blogs.sun.com/ sga/entry/boost_1_33_1, am still unable to do so. However, I can compile other examples provided with multi_index.
[long error message snipped]
regards, Prashant Thakre
Hello,
Could you please try to compile the attached file in your environment? If it *fails* to compile, then it's likely that you can work around the problem you're having with Boost.MultiIndex by going to lines 39 and ff. of boost/multi_index/detail/access_specifier.hpp:
#if BOOST_WORKAROUND(__GNUC__, <3)||\ BOOST_WORKAROUND(__GNUC__,==3)&&(__GNUC_MINOR__<4)||\ BOOST_WORKAROUND(BOOST_MSVC,==1310)||\ BOOST_WORKAROUND(BOOST_MSVC,==1400) #define BOOST_MULTI_INDEX_PRIVATE_IF_USING_DECL_FOR_TEMPL_FUNCTIONS public #else #define BOOST_MULTI_INDEX_PRIVATE_IF_USING_DECL_FOR_TEMPL_FUNCTIONS private #endif
and adding Sun Studio as a special case:
#if BOOST_WORKAROUND(__GNUC__, <3)||\ BOOST_WORKAROUND(__GNUC__,==3)&&(__GNUC_MINOR__<4)||\ BOOST_WORKAROUND(BOOST_MSVC,==1310)||\ BOOST_WORKAROUND(BOOST_MSVC,==1400)||\ BOOST_WORKAROUND(__SUNPRO_CC,BOOST_TESTED_AT(0x580)) #define BOOST_MULTI_INDEX_PRIVATE_IF_USING_DECL_FOR_TEMPL_FUNCTIONS public #else #define BOOST_MULTI_INDEX_PRIVATE_IF_USING_DECL_FOR_TEMPL_FUNCTIONS private #endif
Does this help? Please report back, good luck,
Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
Attachment (using_tmpl.cpp): application/x-unknown-content-type-cppfile, 160 bytes
Hi,
Sample file provided did *fail* to compile with Sun Studio 11 on Solaris 10.
----Error----
Could not find a match for A::F