[Boost-bugs] [Boost C++ Libraries] #1547: [thread] error C2065: 'NULL' : undeclared identifier in thread_primitives.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #1547: [thread] error C2065: 'NULL' : undeclared identifier in thread_primitives.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-12-29 00:25:22


#1547: [thread] error C2065: 'NULL' : undeclared identifier in
thread_primitives.hpp
-------------------------------------+--------------------------------------
 Reporter: faridz_at_[hidden] | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: Boost 1.35.0 | Component: thread
  Version: Boost Development Trunk | Severity: Showstopper
 Keywords: |
-------------------------------------+--------------------------------------
 The [http://incubator.apache.org/stdcxx/ stdcxx] is the another
 implementation of the STL (initially based on RogueWave STL).

     The following errors are encountered when running boost regression
 tests on msvc with stdcxx-4.2.0.

 {{{
 d:\boost\boost\boost\thread\win32\thread_primitives.hpp(184) : error
 C2065: 'NULL' : undeclared identifier
 d:\boost\boost\boost\thread\win32\thread_primitives.hpp(184) : error
 C2065: 'NULL' : undeclared identifier
 }}}

 I propose to add #include <cstdlib> in thread_primitives.hpp to define the
 NULL macro, or even better - replace the all NULL macros to 0.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1547>
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