Alexandre -
Thanks Jeff, but I guess it is this stupid MSVC compiler. I just done what I does not want to do (but it works fine), turning using namespace directive into scope resolution operator inside "token_functions.hpp":
Actually, I believe std::ispunct is a better implementation than the current one that uses "using". Just so I understand, did this change work? If so, it should be suggested as a change to the library.
I try this little program inside MSVC and it work fine. I does not understand what is going on inside "token_functions.hpp"!
#include <string> #include <iostream>
void f();
int main(int argc, char* argv[]) { f(); return 0; }
#define xxx std;
void f() { using namespace xxx; string a; a.assign("hello"); cout << a << endl; }
I don't understand what you are trying to do here or what this has to do with regex/tokenizer? Jeff