Boost logo

Boost Users :

From: Pavol Droba (droba_at_[hidden])
Date: 2005-06-06 03:37:00


Hi,

On Mon, Jun 06, 2005 at 01:17:47PM +0800, Sheng QuanHu wrote:
> I just write a simple test of trim:
>
> #include <string>
> #include <boost/algorithm/string.hpp>
> int main(){
> using namespace std;
> string temp = " just test ";
> boost::trim(temp);
> return 0;
> }
>
> but it couldn't pass the compile, error was:
> [C++ Error] trim.hpp(233): E2285 Could not find a match for 'detail::trim_end(undefined,undefined,detail::is_classifiedF)'
> [C++ Error] trim.hpp(126): E2285 Could not find a match for 'detail::trim_begin(undefined,undefined,detail::is_classifiedF)'
>
> but when I move the "using namespace std;" out of main function:
>
> #include <string>
> #include <boost/algorithm/string.hpp>
> using namespace std;
> int main(){
> string temp = " just test ";
> boost::trim(temp);
> return 0;
> }
>
> I don't know why?
>

I'm not sure what the problem could be. But it seems like some bug in a compiler.

So my first question is: What compiler do you use?

Regards,
Pavol


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