X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Flibs%2Fasio%2Ftest%2Fproperties%2Fcpp11%2Fcan_require_concept_unsupported.cpp;fp=ceph%2Fsrc%2Fboost%2Flibs%2Fasio%2Ftest%2Fproperties%2Fcpp11%2Fcan_require_concept_unsupported.cpp;h=edbca6dd00f77b49d7e7a6f87831a3fd2fb87db5;hb=20effc670b57271cb089376d6d0800990e5218d5;hp=0000000000000000000000000000000000000000;hpb=a71831dadd1e1f3e0fa70405511f65cc33db0498;p=ceph.git diff --git a/ceph/src/boost/libs/asio/test/properties/cpp11/can_require_concept_unsupported.cpp b/ceph/src/boost/libs/asio/test/properties/cpp11/can_require_concept_unsupported.cpp new file mode 100644 index 000000000..edbca6dd0 --- /dev/null +++ b/ceph/src/boost/libs/asio/test/properties/cpp11/can_require_concept_unsupported.cpp @@ -0,0 +1,40 @@ +// +// cpp11/can_require_concept_unsupported.cpp +// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +// +// Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// + +#include +#include + +template +struct prop +{ +}; + +template +struct object +{ +}; + +namespace boost { +namespace asio { + +template +struct is_applicable_property, prop > +{ + static constexpr bool value = true; +}; + +} // namespace asio +} // namespace boost + +int main() +{ + static_assert(!boost::asio::can_require_concept, prop<2>>::value, ""); + static_assert(!boost::asio::can_require_concept, prop<2>>::value, ""); +}