diff options
author | bunnei <bunneidev@gmail.com> | 2020-12-30 01:50:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-30 01:50:20 +0100 |
commit | 85cfd96f62177338de78d5ca6d7fa4eda0a3728b (patch) | |
tree | f36be5e67a3496534fa579e6edeb25c70529b448 /src/common/concepts.h | |
parent | Merge pull request #5246 from comex/xx-include (diff) | |
parent | k_priority_queue: Fix concepts use (diff) | |
download | yuzu-85cfd96f62177338de78d5ca6d7fa4eda0a3728b.tar yuzu-85cfd96f62177338de78d5ca6d7fa4eda0a3728b.tar.gz yuzu-85cfd96f62177338de78d5ca6d7fa4eda0a3728b.tar.bz2 yuzu-85cfd96f62177338de78d5ca6d7fa4eda0a3728b.tar.lz yuzu-85cfd96f62177338de78d5ca6d7fa4eda0a3728b.tar.xz yuzu-85cfd96f62177338de78d5ca6d7fa4eda0a3728b.tar.zst yuzu-85cfd96f62177338de78d5ca6d7fa4eda0a3728b.zip |
Diffstat (limited to 'src/common/concepts.h')
-rw-r--r-- | src/common/concepts.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/concepts.h b/src/common/concepts.h index 5bef3ad67..aa08065a7 100644 --- a/src/common/concepts.h +++ b/src/common/concepts.h @@ -31,4 +31,8 @@ concept DerivedFrom = requires { std::is_convertible_v<const volatile Derived*, const volatile Base*>; }; +// TODO: Replace with std::convertible_to when libc++ implements it. +template <typename From, typename To> +concept ConvertibleTo = std::is_convertible_v<From, To>; + } // namespace Common |