|
Boost : |
From: Joaquín Mª López Muñoz (joaquin_at_[hidden])
Date: 2007-11-12 08:33:25
Emre Turkay ha escrito:
> Hi folks,
>
> I'm compiling a simple test application for boost::multi_index extractor
> operator and getting the warning below. Count as a bug report.
>
> OS: Ubuntu linux 7.10
> Compiler: g++ (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
> Compile flags: Shown below.
>
> Thanks,
>
> Emre Turkay
>
> This is the code:
[...]
Hi Emre, the problem you describe is reported as a GCC bug at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32395
but it doesn't seem to have been solved yet. Anyway, The Boost 1.35 version
of Boost.MultiIndex has been tweaked to shut this warning up. You can
download a daily snapshot of the SVN trunk at:
http://boost-consulting.com/boost.tar.bz2
While you wait for Boost 1.35 to come out you can patch your local copy
of Boost (I assume it's Boost 1.34.1) by replacing lines 798 and following of
boost/multi_index/ordered_index.hpp:
struct link_info
{
ordered_index_side side;
ordered_index_node_impl* pos;
};
with the following:
struct link_info
{
link_info():side(to_left){}
ordered_index_side side;
node_impl_pointer pos;
};
Hope this helps. Thanks for reporting the problem and for using
Boost.MultiIndex,
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk