Boost logo

Boost :

Subject: [boost] [scope_exit] trunk tests fail on sun compiler
From: lcaminiti (lorcaminiti_at_[hidden])
Date: 2012-04-03 09:58:49


Vicente Botet wrote
>
> Le 02/04/12 22:21, lcaminiti a écrit :
>> lcaminiti wrote
>>> Next I'll either be able to fix these errors or mark the Sun tests n/a.
>>>
>> Good news :) it seems that ScopeExit compiles on Sun (after I've replaced
>> Boost.Test with Boost.Detail/LightweightTest as Vicente suggested).
>>
>> One issue however it that Boost.Typeof does not automatically detect Sun
>> as
>> not having native type-of so BOOST_TYPEOF_EMULATION must be explicitly
>> defined by the user to compile ScopeExit code. But once that's done, most
>> (I'm still double checking if all) tests seems to compile. I will mark
>> the
>> ScopeExit failures on Sun as "must use type-of emulation mode (by
>> defining
>> the BOOST_TYPEOF_EMULATION macro)".
>>
>>
> What about forcing BOOST_TYPEOF_EMULATION with Sun compiler?
>
> Boost.Chrono adds this to the Jamfile project requirements
>
> <toolset>sun:<define>BOOST_TYPEOF_EMULATION
>
> Maybe I should add it to the config.hpp file in addition to document the
> restriction.
>

How would I make Boost.Typeof automatically detect that Sun doesn't support
native type-of? That'd be the best fix for the user. Shall I change
Boost.Config, Boost.Typeof, or something else?

Thanks.
--Lorenzo

--
View this message in context: http://boost.2283326.n4.nabble.com/boost-scope-exit-trunk-tests-fail-on-sun-compiler-tp4501546p4528857.html
Sent from the Boost - Dev mailing list archive at Nabble.com.

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