Boost logo

Boost :

From: Jürgen Hunold (hunold_at_[hidden])
Date: 2006-11-30 09:15:29


Hi Jaoquin !

An'n Dunnersdag 30 November 2006, 14:44 hett Joaquín Mª López Muñoz schreven:
> 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?

I've just checked with msvc-8.0 and simply removed the BOOST_TEST_DECL.
So please just remove it _completely_ as it is not needed.
And gcc will complain about it when visibility-support is enabled, too.

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold  ! Ingenieurgesellschaft für 
* voice: ++49 511 262926 57  ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99  ! Lister Straße 15
* juergen.hunold_at_[hidden]   ! www.ivembh.de

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