]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/spirit/home/support/detail/sign.hpp
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / boost / boost / spirit / home / support / detail / sign.hpp
CommitLineData
7c673cae
FG
1/*=============================================================================
2 Copyright (c) 2001-2011 Joel de Guzman
3 Copyright (c) 2001-2011 Hartmut Kaiser
4 http://spirit.sourceforge.net/
5
6 Distributed under the Boost Software License, Version 1.0. (See accompanying
7 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8=============================================================================*/
f67539c2
TL
9#ifndef BOOST_SPIRIT_SUPPORT_DETAIL_SIGN_HPP
10#define BOOST_SPIRIT_SUPPORT_DETAIL_SIGN_HPP
7c673cae
FG
11
12#if defined(_MSC_VER)
13#pragma once
14#endif
15
7c673cae 16#include <boost/math/special_functions/sign.hpp>
7c673cae
FG
17
18namespace boost { namespace spirit { namespace detail
19{
7c673cae
FG
20 template<typename T>
21 inline bool (signbit)(T x)
22 {
23 return (boost::math::signbit)(x) ? true : false;
24 }
25
7c673cae
FG
26 template<typename T>
27 inline T (changesign)(T x)
28 {
92f5a8d4 29 return (boost::math::changesign)(x);
7c673cae 30 }
7c673cae
FG
31
32}}}
33
34#endif