Boost logo

Boost :

From: Joaquín Mª López Muñoz (joaquin_at_[hidden])
Date: 2006-11-30 08:44:24


CW 9.4 fails to compile floating_point_comparison.hpp (see
http://tinyurl.com/ybzaze ) because of line 36:

enum BOOST_TEST_DECL floating_point_comparison_type {

where BOOST_TEST_DECL resolves to __declspec(dllimport)
or __declspec(dllexport) depending on the context. Seemingly, this
compiler does not support __declspec applied to enum types --usage
with classes and functions is supported, though.

The obvious workaround is to replace the offending line with

#if BOOST_WORKAROUND(__MWERKS__,BOOST_TESTED_AT(0x3205))
enum floating_point_comparison_type {
#else
enum BOOST_TEST_DECL floating_point_comparison_type {
#endif

Is it OK for me to commit this change to the HEAD and RC_1_34_0?

Thank you,

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk