[regex] missing header inclusion

Hello The sprintf function reference in the using directive at regex_workaround.hpp is declared in stdio.h or cstdio which is not included. This missing header inclusion makes build of boost regex lib impossible with msvc-stlport toolset and surely with many other STLport toolsets. I try to remove the using directive as this function is not used in this file but it is in regex lib sources so the fix is really to add the header inclusion. Bests *** regex_workaround.hpp.orig Thu Aug 25 05:32:32 2005 --- regex_workaround.hpp Thu Aug 25 05:32:50 2005 *************** *** 22,27 **** --- 22,28 ---- #include <new> #include <cstring> + #include <cstdio> #include <cstdlib> #include <cstddef> #include <cassert>

The sprintf function reference in the using directive at regex_workaround.hpp is declared in stdio.h or cstdio which is not included.
The problem appears to only show up with STLport 5 and msvc, but you're right and the patch is correct. Unfortunately that's not the end of the story: I'm seeing other quite intractable problems with STLport 5 when used with VC6 or 7, but it does fix VC7.1 at least. John.
participants (2)
-
François Dumont
-
John Maddock