2
0
mirror of https://github.com/boostorg/cobalt.git synced 2026-01-19 04:02:16 +00:00
Files
cobalt/cmake/concepts.cpp
2023-10-25 23:10:20 +08:00

12 lines
391 B
C++

//
// Copyright (c) 2023 Klemens Morgenstern (klemens.morgenstern@gmx.net)
//
// 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 <concepts>
static_assert(!std::derived_from<int, double>);
static_assert(std::same_as<int, int>);
static_assert(std::convertible_to<int, double>);