Build fails with boost1.40/boost1.42

Bug #905034 reported by Neil Dantam
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
peekabot
New
Undecided
Unassigned

Bug Description

Building against boost1.40 (Ubuntu Lucid) or boost1.42 (Debian Squeeze) fails with the following error:

  gui/Gui.cc: In member function ‘void peekabot::gui::Gui::load_stock_icons(const boost::filesystem::path&)’:
  gui/Gui.cc:690: error: ‘struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >’ has no member named ‘string’

The relevant section of the code is:

#if BOOST_FILESYSTEM_VERSION == 2
            std::string leaf = it->path().filename();
#else
            std::string leaf = it->path().filename().string();
#endif

The offending line in Gui.cc is:

  std::string leaf = it->path().filename().string();

Changing to the following fixes the problem:

    std::string leaf = it->path().filename();

Maybe some additional configure check is needed to figure out whether the ".string()" is needed?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.