Opened 10 years ago

Closed 10 years ago

#7009 closed Bugs (fixed)

include move in posix_api.cpp for _SECURE_SCL with vc80

Reported by: Luke Elliott <lukester_null@…> Owned by: John Maddock
Milestone: To Be Determined Component: regex
Version: Boost Development Trunk Severity: Cosmetic
Keywords: Cc:

Description

In my build environment I turn off _SECURE_SCL by adding some defines to visualc.hpp.

The causes a small issue in posix_api.cpp where the includes are:

#include <cstdio>
#include <boost/regex.hpp>
#include <boost/cregex.hpp>

so I have to patch that to

#include <boost/regex.hpp>
#include <boost/cregex.hpp>
#include <cstdio>

such that the _SECURE_SCL definition is correct before any compiler headers are included.

No big deal, but I thought I'd mention as it should be harmless change for everyone and would mean one less patch to maintain against upstream boost!

Best regards

Luke Elliott.

Change History (1)

comment:1 by John Maddock, 10 years ago

Resolution: fixed
Status: newclosed

(In [79152]) Make sure at least one Boost header (and therefore Boost.Config) precedes std lib headers so that defines in boost/config/user.hpp are seen by system headers. Fixes #7009.

Note: See TracTickets for help on using tickets.