#include <boost/asio/query.hpp>
#include <cassert>
struct prop
{
};
struct object
{
};
namespace boost {
namespace asio {
template<>
struct is_applicable_property<object, prop>
{
static constexpr bool value = true;
};
namespace traits {
template<>
struct static_query<object, prop>
{
static constexpr bool is_valid = true;
static constexpr bool is_noexcept = true;
typedef int result_type;
static constexpr int value() { return 123; }
};
} } }
int main()
{
static_assert(boost::asio::can_query<object, prop>::value, "");
static_assert(boost::asio::can_query<const object, prop>::value, "");
}