X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Flibs%2Fasio%2Ftest%2Fproperties%2Fcpp14%2Fcan_query_not_applicable_static.cpp;fp=ceph%2Fsrc%2Fboost%2Flibs%2Fasio%2Ftest%2Fproperties%2Fcpp14%2Fcan_query_not_applicable_static.cpp;h=ea3003818d91bcea9d91443f442b708a45559c02;hb=20effc670b57271cb089376d6d0800990e5218d5;hp=0000000000000000000000000000000000000000;hpb=a71831dadd1e1f3e0fa70405511f65cc33db0498;p=ceph.git diff --git a/ceph/src/boost/libs/asio/test/properties/cpp14/can_query_not_applicable_static.cpp b/ceph/src/boost/libs/asio/test/properties/cpp14/can_query_not_applicable_static.cpp new file mode 100644 index 000000000..ea3003818 --- /dev/null +++ b/ceph/src/boost/libs/asio/test/properties/cpp14/can_query_not_applicable_static.cpp @@ -0,0 +1,27 @@ +// +// cpp14/can_query_not_applicable_static.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 + +struct prop +{ + template static constexpr int static_query_v = 123; +}; + +struct object +{ +}; + +int main() +{ + static_assert(!boost::asio::can_query_v, ""); + static_assert(!boost::asio::can_query_v, ""); +}