$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Prashant Thakre (prashant.thakre_at_[hidden])
Date: 2006-09-18 06:17:01
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.
 >>CC -library=stlport4 -features=tmplife -featurestmplrefstatic -fast 
-I$BOOST_INCLUDE composite_keys.cpp 
-----------------------------------------------------------------------------
boost/include/boost-1_33_1/boost/multi_index/ordered_index.hpp",
 line 784: Error: boost::multi_index::composite_key_compare<std::less<const
file_entry*>, std::less<std::string>, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, 
boost::tuples::null_type>::operator()<boost::multi_index::
composite_key<file_entry,
boost::multi_index::member<file_entry, const file_entry*, 21>, 
boost::multi_index::member<file_entry, std::string, 1>, 
boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type,
boost::tuples::null_type,boost::tuples::null_type, boost::tuples::null_type, 
boost::tuples::null_type, boost::tuples::null_type>, 
boost::multi_index::composite_key<file_entry, boost::multi_index::
member<file_entry, const file_entry*, 21>, 
boost::multi_index::member<file_entry, std::string, 1>, 
boost::tuples::null_type, boost::tuples::null_type, 
boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, 
boost::tuples::null_type, boost::tuples::null_type, 
boost::tuples::null_type>>(const boost::multi_index::composite_
key_result<boost::multi_index::composite_key<file_entry, 
boost::multi_index::member<file_entry, const file_entry*, 21>, 
boost::multi_index::member<file_entry, std::string,1>, 
boost::tuples::null_type, boost::tuples::null_type, 
boost::tuples::null_type, 
boost::tuples::null_type, boost::tuples::null_type, 
boost::tuples::null_type, 
boost::tuples::null_type, boost::tuples::null_type>>&, 
const boost::multi_index::composite_key_result<
boost::multi_index::composite_key<file_entry,
boost::multi_index::member<file_entry, const file_entry*, 21>, 
boost::multi_index::member<file_entry, std::string, 1>, 
boost::tuples::null_type, boost::tuples::null_type, 
boost::tuples::null_type, 
boost::tuples::null_type, boost::tuples::null_type, 
boost::tuples::null_type, 
boost::tuples::null_type, boost::tuples::null_type>>&) 
const is not accessible from 
boost::multi_index::detail::ordered_index<name_key, 
std::less<boost::multi_index::composite_key_result<
boost::multi_index::composite_key<file_entry,
boost::multi_index::member<file_entry, const file_entry*, 21>, 
boost::multi_index::member<file_entry, std::string, 1>, 
boost::tuples::null_type, boost::tuples::null_type, 
boost::tuples::null_type, 
boost::tuples::nulles::null_type, boost::tuples::null_type, 
boost::tuples::null_type, boost::tuples::null_type, 
boost::tuples::null_type, 
boost::tuples::null_type, boost::tuples::null_type, 
boost::tuples::null_type>>>, 
boost::multi_index::detail::nth_layer<1,file_entry, 
boost::multi_index::indexed_by<boost::multi_index::ordered_unique<name_key, 
mpl_::na, mpl_::na>, boost::multi_index::ordered_non_unique<
size_key, mpl_::na, mpl_::na>, mpl_::na,mpl_::na, mpl_::na, mpl_::na, 
mpl_::na, mpl_::na, mpl_::na, 
mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, 
mpl_::na, 
mpl_::na, mpl_::na, mpl_::na>, std::allocator<file_entry>> , 
boost::mpl::vector0<mpl_::na>, 
boost::multi_index::detail::ordered_unique_tag>::invariant_() const.
-----------------------------------------------------------------------------
similar error is reported for line 785 ("boost/include/boost-1_33_1/boost/
multi_index/ordered_index.hpp" )
 
regards,
Prashant Thakre