Opened 15 years ago
Closed 15 years ago
#1547 closed Bugs (fixed)
[thread] error C2065: 'NULL' : undeclared identifier in thread_primitives.hpp
Reported by: | Owned by: | Anthony Williams | |
---|---|---|---|
Milestone: | Boost 1.35.0 | Component: | thread |
Version: | Boost Development Trunk | Severity: | Showstopper |
Keywords: | Cc: |
Description
The 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.
Note:
See TracTickets
for help on using tickets.