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 Antony Polukhin, 11 years ago

Owner: changed from No-Maintainer to Beman Dawes
Summary: VC++6 can not compile some assert.hpp headerVC++6 can not compile assert.hpp header
Type: BugsPatches
Version: Boost 1.47.0Boost Development Trunk

comment:2 by Antony Polukhin, 11 years ago

You also need to add header

#include <boost/detail/workaround.hpp>

comment:3 by Steven Watanabe, 11 years ago

Resolution: wontfix
Status: newclosed

VC6 is unsupported.

Note: See TracTickets for help on using tickets.