diff options
| author | Mai <mathew1800@gmail.com> | 2022-10-26 15:12:48 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-26 15:12:48 +0000 |
| commit | 049bf101cd14a7220deb2fa5044e68a85ce6ed2d (patch) | |
| tree | f8df340674b1480f3e0f53a9d21b7fa6fbb350f3 /src/core/hle/kernel | |
| parent | 22acf5cddb2047bb2b2ff0a2d6b9329915ff14a3 (diff) | |
| parent | 89ace6c3673e57b7ec8a79b1c88c8c1ae9f55c5c (diff) | |
Merge pull request #9131 from Morph1984/contiguous
concepts: Use the std::contiguous_iterator concept
Diffstat (limited to 'src/core/hle/kernel')
| -rw-r--r-- | src/core/hle/kernel/hle_ipc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/hle_ipc.h b/src/core/hle/kernel/hle_ipc.h index a0522bca0b..1083638a9e 100644 --- a/src/core/hle/kernel/hle_ipc.h +++ b/src/core/hle/kernel/hle_ipc.h @@ -304,7 +304,7 @@ public: */ template <typename T, typename = std::enable_if_t<!std::is_pointer_v<T>>> std::size_t WriteBuffer(const T& data, std::size_t buffer_index = 0) const { - if constexpr (Common::IsSTLContainer<T>) { + if constexpr (Common::IsContiguousContainer<T>) { using ContiguousType = typename T::value_type; static_assert(std::is_trivially_copyable_v<ContiguousType>, "Container to WriteBuffer must contain trivially copyable objects"); |
