Boost logo

Boost Users :

From: Jeff Garland (jeff_at_[hidden])
Date: 2001-11-28 11:18:08


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


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