The "error C2668" on VC6

Hi guys, I'm trying to introduce the boost regex into my old VC6 project. "using namespace std" is declearared in many files. When I include "#include <boost/regex.hpp>", I receive the following error: error C2668: 'memset' : ambiguous call to overloaded function. When I remove "using namespace std" or add :: to memset(memset -> ::memset), it can be ok. I want to ask wheather there is the third way to solve this problem. Appreciate any help. Worldwind

wind world wrote:
Hi guys, I'm trying to introduce the boost regex into my old VC6 project. "using namespace std" is declearared in many files. When I include "#include <boost/regex.hpp>", I receive the following error: error C2668: 'memset' : ambiguous call to overloaded function. When I remove "using namespace std" or add :: to memset(memset ->
memset), it can be ok. I want to ask wheather there is the third way to solve this problem.
Nope, unfortunately you've hit a VC6 compiler bug :-( John.
participants (2)
-
John Maddock
-
wind world