
Unfortunately I am using 'using namespace std;' after all the include statements only. And I am using VC 6 I think I should tell you how I have creted my workspace I have a workspace in which a) 'Win32 console application' b)'Win32 Dinamic Link Library' (This project uses Boost.multi index) c)'Win32 Dinamic Link Library (This project uses Boost.Regex). I have used both b) and c) dll's in main (Win32 console application). Class hirarchy is as follows WorkSpace -> main files , multiindex files , regex files in the main I am calling the methods of multiindex and regex. Best Regards Mahesh Karanth John Maddock <john@johnmaddock.co.uk> wrote: > When I try to use regex with boost.multiindex I got the following
compilation error. But when I indipendently compile multiindex package and regex package both compiles without any error.
What is the problem? Can anyone please help me to getout of this
You must be using VC7 :-) The problem occurs if you do something like this: #include using namespace std; #include It's a bug in the compiler and there is no workaround, except, don't put a "using namespace std;" statement before including the regex header - or include it before any header that does that. I'm at a loss as to why multi-index should trigger this problem, I hope it doesn't include global using statements like that. But either way, try including the regex header first and see if that fixes things. John. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost --------------------------------- How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.