
9 Jan
2006
9 Jan
'06
5:10 a.m.
Allen Zhao wrote:
Hi, All,
As I am working to get libtorrent working on Win32 with MSVC 7.0, I notice that BOOST_NO_MEMBER_TEMPLATES is defined by default. As a consquence, some of the functions in multi_index_container.cpp is not defined.
For example,
#if !defined(BOOST_NO_MEMBER_TEMPLATES)
You can try changing this to #if defined( BOOST_MSVC_MEMBER_TEMPLATES ) This macro is automatically defined on compilers that support member templates and MSVC 6.0/7.0.
template<int N> struct nth_index {
BOOST_STATIC_ASSERT(N>=0&&N<mpl::size<index_type_list>::type::value); typedef typename mpl::at_c<index_type_list,N>::type type; };