|
Boost : |
Subject: Re: [boost] predef: BOOST_COMP_MSVC defined for Gcc/Linux?
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2016-10-23 16:54:10
On Sun, Oct 23, 2016 at 11:04 AM, Oliver Kowalke <oliver.kowalke_at_[hidden]>
wrote:
> Hi,
> test '#if defined(BOOST_COMP_MSVC)' evaluates to true with GCC on Linux.
> what I'm missing?
>
Most Predef macros are always defined. The exception are the *_AVAILABLE
defs. You need to do either one of these:
#if BOOST_COMP_MSVC
or:
#if defined(BOOST_COMP_MSVC_AVAILABLE)
HTH
-- -- Rene Rivera -- Grafik - Don't Assume Anything -- Robot Dreams - http://robot-dreams.net -- rrivera/acm.org (msn) - grafikrobot/aim,yahoo,skype,efnet,gmail
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk