mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-11 01:08:39 +12:00
types.hpp: add PtrCastable concept
This commit is contained in:
parent
d81a5b1423
commit
eec9578619
2 changed files with 10 additions and 9 deletions
|
@ -1010,3 +1010,10 @@ constexpr auto fill_array(const T&... args)
|
|||
{
|
||||
return fill_array_t<T...>{{args...}};
|
||||
}
|
||||
|
||||
template <typename X, typename Y>
|
||||
concept PtrCastable = requires(const volatile X* x, const volatile Y* y)
|
||||
{
|
||||
static_cast<const volatile Y*>(x);
|
||||
static_cast<const volatile X*>(y);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue