comparison DEPENDENCIES/generic/include/boost/geometry/util/condition.hpp @ 102:f46d142149f5

Whoops, finish that update
author Chris Cannam
date Mon, 07 Sep 2015 11:13:41 +0100
parents
children
comparison
equal deleted inserted replaced
101:c530137014c0 102:f46d142149f5
1 // Boost.Geometry
2
3 // Copyright (c) 2015 Oracle and/or its affiliates.
4
5 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
6
7 // Use, modification and distribution is subject to the Boost Software License,
8 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
9 // http://www.boost.org/LICENSE_1_0.txt)
10
11 #ifndef BOOST_GEOMETRY_UTIL_CONDITION_HPP
12 #define BOOST_GEOMETRY_UTIL_CONDITION_HPP
13
14
15 #include <boost/config.hpp>
16
17
18 // The macro defined in this file allows to suppress the MSVC
19 // compiler warning C4127: conditional expression is constant
20
21 #ifdef BOOST_MSVC
22
23 // NOTE: The code commented out below contains an alternative implementation
24 // of a macro using a free function. It was left here in case if in the future
25 // version of MSVC for the code currently used in the macro implementation
26 // the warning was generated.
27
28 //#ifndef DOXYGEN_NO_DETAIL
29 //namespace boost { namespace geometry { namespace detail {
30 //BOOST_FORCEINLINE bool condition(bool const b) { return b; }
31 //}}} // boost::geometry::detail
32 //#endif // DOXYGEN_NO_DETAIL
33 //#define BOOST_GEOMETRY_CONDITION(CONDITION) boost::geometry::detail::condition(CONDITION)
34
35 #define BOOST_GEOMETRY_CONDITION(CONDITION) ((void)0, (CONDITION))
36
37 #else
38
39 #define BOOST_GEOMETRY_CONDITION(CONDITION) (CONDITION)
40
41 #endif
42
43
44 #endif // BOOST_GEOMETRY_UTIL_CONDITION_HPP