Boost logo

Boost Users :

Subject: [Boost-users] [range] Conflict with string algorithms
From: Bill Buklis (boostusr_at_[hidden])
Date: 2019-03-28 19:00:47


I noticed there is a conflict between boost range and the string
algorithm header files. There may be others, but the specific one I was
dealing with was boost::find.

For example, the following code results in an ambiguous warning. This is
because boost::find is defined both in algorithm/string/find.hpp and
range/algorithm/find.hpp.

#include <vector>
#include <boost/range/algorithm.hpp>
#include <boost/algorithm/string.hpp>

int main()
{
 Â Â Â  std::vector<int>    vec;
 Â Â Â  boost::find(vec, 3);
}

Is this intentional or is it is an oversight or am I just doing
something wrong?

-- 
Bill

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