Boost logo

Boost Users :

From: Prashant Thakre (prashant.thakre_at_[hidden])
Date: 2006-09-18 09:49:21


Joaquín Mª López Muñoz <joaquin <at> tid.es> writes:
>
> 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<A::R>(int) needed in main().
 -------------

 However, adding __SUNPRO_CC as a special case for access_specifier.hpp didn't
help.
 "boost/include/boost-1_33_1/boost/multi_index/detail/access_specifier.hpp"
 line 43: Error: Badly formed constant expression.
 
 Thanks a lot for the help.
-regards,
Prashant Thakre


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net