
There seems to be a bug somewhere in #include <boost/algorithm/string.hpp> If I am not mistaken, this is the central include file for all the string algorithms. But if, e.g. in replace_example.hpp, you replace the separate declarations of #include <boost/algorithm/string/replace.hpp> #include <boost/algorithm/string/erase.hpp> #include <boost/algorithm/string/case_conv.hpp> with //#include <boost/algorithm/string/replace.hpp> //#include <boost/algorithm/string/erase.hpp> //#include <boost/algorithm/string/case_conv.hpp> #include <boost/algorithm/string.hpp> the file no longer compiles. However, #include <boost/algorithm/string/replace.hpp> //#include <boost/algorithm/string/erase.hpp> //#include <boost/algorithm/string/case_conv.hpp> #include <boost/algorithm/string.hpp> does work. Is there an error in the order of header inclusion? Leo Goodstadt

Hi, On Mon, Sep 06, 2004 at 12:33:54PM +0100, Llew Sion Goodstadt wrote:
There seems to be a bug somewhere in
#include <boost/algorithm/string.hpp>
If I am not mistaken, this is the central include file for all the string algorithms. But if, e.g. in replace_example.hpp,
you replace the separate declarations of
#include <boost/algorithm/string/replace.hpp> #include <boost/algorithm/string/erase.hpp> #include <boost/algorithm/string/case_conv.hpp>
with
//#include <boost/algorithm/string/replace.hpp> //#include <boost/algorithm/string/erase.hpp> //#include <boost/algorithm/string/case_conv.hpp> #include <boost/algorithm/string.hpp>
the file no longer compiles.
However,
#include <boost/algorithm/string/replace.hpp> //#include <boost/algorithm/string/erase.hpp> //#include <boost/algorithm/string/case_conv.hpp> #include <boost/algorithm/string.hpp>
does work. Is there an error in the order of header inclusion?
Can you elaborate a little bit more? I have tried it with vc7.1 and gcc and it works fine. What platform are you using? and what is the compiler output whan it fails? Regards, Pavol
participants (2)
-
Llew Sion Goodstadt
-
Pavol Droba