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
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
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