X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Fboost%2Fconvert%2Fdetail%2Fis_fun.hpp;h=4b3d582e449f3fa48cb51fc58033bccd80c34cc7;hb=20effc670b57271cb089376d6d0800990e5218d5;hp=72a768188a58c29c38bfc42ccc4f6e5f9b9a67e0;hpb=a71831dadd1e1f3e0fa70405511f65cc33db0498;p=ceph.git diff --git a/ceph/src/boost/boost/convert/detail/is_fun.hpp b/ceph/src/boost/boost/convert/detail/is_fun.hpp index 72a768188..4b3d582e4 100644 --- a/ceph/src/boost/boost/convert/detail/is_fun.hpp +++ b/ceph/src/boost/boost/convert/detail/is_fun.hpp @@ -1,4 +1,4 @@ -// Copyright (c) 2009-2016 Vladimir Batov. +// Copyright (c) 2009-2020 Vladimir Batov. // Use, modification and distribution are subject to the Boost Software License, // Version 1.0. See http://www.boost.org/LICENSE_1_0.txt. @@ -7,16 +7,14 @@ #include #include -#include -#include #include #include #include namespace boost { namespace cnv { - typedef ::boost::type_traits::yes_type yes_type; - typedef ::boost::type_traits:: no_type no_type; + using yes_type = ::boost::type_traits::yes_type; + using no_type = ::boost::type_traits:: no_type; template struct check_functor { BOOST_STATIC_CONSTANT(bool, value = false); }; @@ -30,7 +28,7 @@ namespace boost { namespace cnv static yes_type test (TypeOut const&); static no_type test (...); - static const bool value = sizeof(yes_type) == sizeof(test(((Functor*) 0)->operator()())); + static bool BOOST_CONSTEXPR_OR_CONST value = sizeof(yes_type) == sizeof(test(((Functor*) 0)->operator()())); }; template