Subject: [Boost-bugs] [Boost C++ Libraries] #1740: date_time includes <windows.h>
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-03-31 17:20:54
#1740: date_time includes <windows.h>
----------------------------------+-----------------------------------------
Reporter: Anteru_at_[hidden] | Owner: az_sw_dude
Type: Bugs | Status: new
Milestone: Boost 1.36.0 | Component: date_time
Version: Boost 1.35.0 | Severity: Problem
Keywords: |
----------------------------------+-----------------------------------------
The header <boost/date_time/filetime_functions.hpp> includes <windows.h>
by default, and there is no way to turn this off (e.g.
BOOST_USE_WINDOWS_H). This is a problem as this brings in the
min,max,ERROR,etc. macros in. (This header is included if you include
<boost/date_time.hpp>
As date_time has to be compiled anyway, it would be very nice to have this
functionality in the library somewhere and not include <windows.h>.
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1740>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC