Boost logo

Boost Users :

From: Terje Slettebų (terje.s_at_[hidden])
Date: 2002-08-02 16:53:25


  From: Tanton Gibbs

  I had a problem with using mpl::find and the std::find at the same time.
  Basically, my compiler, Compaq C++ V6.5-026, notes an ambiguity in find.hpp
  between the find_if that it uses and the find_if in the STL. I changed the
  line that reads

  struct find
         : find_if< Sequence, same_as<T> > {};

  to be
  struct find
         : mpl::find_if< Sequence, same_as<T> > {};

  and it works fine. I'm not sure if this is a compiler bug or if we need to
  find other occurences like this one and fix them.
It shouldn't find std::find and std::find_if, unless they have been pulled in by a "using" declatation or directive. Could it be that you have that _before_ the MPL #include's? In that case, you should make sure that any such declaration/directive, in the global namespace, doesn't occur until after all #include's, for cpp-files, and not at all in header files.

Regards,

Terje

[Non-text portions of this message have been removed]


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net