Opened 11 years ago
Closed 11 years ago
#5708 closed Patches (wontfix)
VC++6 can not compile assert.hpp header
| Reported by: | Antony Polukhin | Owned by: | Beman Dawes |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | utility |
| Version: | Boost Development Trunk | Severity: | Problem |
| Keywords: | Cc: |
Description
VC++6 has a little problem with std::exit (compiler can not find this function).
It is possible to fix this bug by replacing
#if defined(UNDER_CE)
// The Windows CE CRT library does not have std::abort() so use exit(-1) instead.
std::exit(-1);
#else
(line 104 of boost/assert.hpp) with
#if defined(UNDER_CE) || BOOST_WORKAROUND(BOOST_MSVC,<1300)
// The Windows CE CRT library and VC++6 does not have std::abort() so use exit(-1) instead.
using namespace std;
exit(-1);
#else
But I`m not sure about portability of this bugfix.
Change History (3)
comment:1 by , 11 years ago
| Owner: | changed from to |
|---|---|
| Summary: | VC++6 can not compile some assert.hpp header → VC++6 can not compile assert.hpp header |
| Type: | Bugs → Patches |
| Version: | Boost 1.47.0 → Boost Development Trunk |
comment:2 by , 11 years ago
Note:
See TracTickets
for help on using tickets.

You also need to add header