Boost logo

Boost Users :

Subject: [Boost-users] replace_range already declared in this scope?
From: Nathan Ridge (zeratul976_at_[hidden])
Date: 2010-09-02 20:37:12


Hello,

It seems the following two headers do not play nicely with each other:

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

When both are included in a source file, I get the error:

boost/range/adaptor/replaced.hpp:102: error: ‘replace_range’ is already declared in this scope

Removing either of the headers fixes the problem, but I cannot do that since I need functionality from both.

What can I do to fix this? I am using Boost 1.43.

Thanks,
Nate.
                                               



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