mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
The macOS deployment target has been upgraded from 10.15 to 11. Also, a deprecation warning for sprintf() in libuv was suppressed.
18 lines
500 B
C++
18 lines
500 B
C++
// Copyright (c) FIRST and other WPILib contributors.
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
|
// the WPILib BSD license file in the root directory of this project.
|
|
|
|
#pragma once
|
|
|
|
#include <concepts>
|
|
#include <type_traits>
|
|
|
|
namespace wpi {
|
|
|
|
template <class Derived, class Base>
|
|
concept DecayedDerivedFrom =
|
|
std::derived_from<std::decay_t<Derived>, std::decay_t<Base>> &&
|
|
std::convertible_to<std::decay_t<Derived>*, std::decay_t<Base>*>;
|
|
|
|
} // namespace wpi
|