Boost logo

Boost :

Subject: Re: [boost] Coroutine2 examples - Cannot link properly.
From: Edward Diener (eldiener_at_[hidden])
Date: 2016-03-31 19:44:37


On 3/31/2016 6:09 PM, Carlos Ferreira wrote:
> None of them seem to be defined. I have checked one by one using the header
> files included in the fibonacci example and none of those macros seem to be
> defined.
>
> Is there a test or a "boost" way for me to confirm and to be sure that none
> of those macros are defined?

Just a C++ way <g>. Add to an included header file:

#include <boost/config.hpp>

#if defined(BOOST_NO_CXX11_AUTO_DECLARATIONS) || \
     defined(BOOST_NO_CXX11_CONSTEXPR) || \
     defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS) || \
     defined(BOOST_NO_CXX11_FINAL) || \
     defined(BOOST_NO_CXX11_HDR_TUPLE) || \
     defined(BOOST_NO_CXX11_NOEXCEPT) || \
     defined(BOOST_NO_CXX11_NULLPTR) || \
     defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || \
     defined(BOOST_NO_CXX11_TEMPLATE_ALIASES) || \
     defined(BOOST_NO_CXX11_UNIFIED_INITIALISATION_SYNTAX) || \
     defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) || \
     defined(BOOST_NO_HDR_ATOMIC) || \
     defined(BOOST_NO_HDR_TUPLE)
#error Your message here
#endif

>
> On 31 March 2016 at 22:20, Oliver Kowalke <oliver.kowalke_at_[hidden]> wrote:
>
>> if one of the defect macros below seams to be defined - prevents including
>> execution_context:
>>
>> BOOST_NO_CXX11_AUTO_DECLARATIONS
>> BOOST_NO_CXX11_CONSTEXPR
>> BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
>> BOOST_NO_CXX11_FINAL
>> BOOST_NO_CXX11_HDR_TUPLE
>> BOOST_NO_CXX11_NOEXCEPT
>> BOOST_NO_CXX11_NULLPTR
>> BOOST_NO_CXX11_RVALUE_REFERENCES
>> BOOST_NO_CXX11_TEMPLATE_ALIASES
>> BOOST_NO_CXX11_UNIFIED_INITIALISATION_SYNTAX
>> BOOST_NO_CXX11_VARIADIC_TEMPLATES
>> BOOST_NO_HDR_ATOMIC
>> BOOST_NO_HDR_TUPLE
>>
>> _______________________________________________
>> Unsubscribe & other changes:
>> http://lists.boost.org/mailman/listinfo.cgi/boost
>>
>
>
>


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