]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/asio/test/properties/cpp03/can_query_free.cpp
2 // cpp03/can_query_free.cpp
3 // ~~~~~~~~~~~~~~~~~~~~~~~~
5 // Copyright (c) 2003-2020 Christopher M. Kohlhoff (chris at kohlhoff dot com)
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
11 #include <boost/asio/query.hpp>
20 friend int query(const object
&, prop
) { return 123; }
27 struct is_applicable_property
<object
, prop
>
29 static const bool value
= true;
35 struct query_free
<object
, prop
>
37 static const bool is_valid
= true;
38 static const bool is_noexcept
= true;
39 typedef int result_type
;
48 assert((boost::asio::can_query
<object
, prop
>::value
));
49 assert((boost::asio::can_query
<const object
, prop
>::value
));