]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/geometry/include/boost/geometry/util/condition.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / geometry / include / boost / geometry / util / condition.hpp
CommitLineData
7c673cae
FG
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