X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Flibs%2Fhana%2Fexample%2Ftutorial%2Fconcepts.cpp;h=751b473098175e29d80a606bab956ce4cad0adca;hb=b32b81446b3b05102be0267e79203f59329c1d97;hp=ef226c2ed8f33ad643a6bb8ba4b716a22554007e;hpb=215dd7151453fae88e6f968c975b6ce309d42dcf;p=ceph.git diff --git a/ceph/src/boost/libs/hana/example/tutorial/concepts.cpp b/ceph/src/boost/libs/hana/example/tutorial/concepts.cpp index ef226c2ed..751b47309 100644 --- a/ceph/src/boost/libs/hana/example/tutorial/concepts.cpp +++ b/ceph/src/boost/libs/hana/example/tutorial/concepts.cpp @@ -1,9 +1,10 @@ -// Copyright Louis Dionne 2013-2016 +// Copyright Louis Dionne 2013-2017 // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) #include #include +#include #include #include @@ -21,10 +22,11 @@ struct print_impl : special_base_class { }; template -struct Printable { - using Tag = hana::tag_of_t; - static constexpr bool value = !std::is_base_of>::value; -}; +struct Printable + : hana::integral_constant>>::value + > +{ }; //! [special_base_class] //! [special_base_class_customize] @@ -49,10 +51,11 @@ struct print_impl : hana::default_ { }; template -struct Printable { - using Tag = hana::tag_of_t; - static constexpr bool value = !hana::is_default>::value; -}; +struct Printable + : hana::integral_constant>>::value + > +{ }; //! [actual] static_assert(!Printable::value, "");