Boost logo

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

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:

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

  struct link_info
    ordered_index_side side;
    ordered_index_node_impl* pos;

with the following:

  struct link_info

    ordered_index_side side;
    node_impl_pointer pos;

Hope this helps. Thanks for reporting the problem and for using

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo

Boost list run by bdawes at, gregod at, cpdaniel at, john at