diff options
| author | 2022-10-26 15:12:48 +0000 | |
|---|---|---|
| committer | 2022-10-26 15:12:48 +0000 | |
| commit | 041eb5bf57f4db8609341c77bd5d38ddcd8b2d80 (patch) | |
| tree | f8df340674b1480f3e0f53a9d21b7fa6fbb350f3 /src/core/hle/kernel | |
| parent | Merge pull request #9128 from abouvier/patch-1 (diff) | |
| parent | concepts: Use the std::contiguous_iterator concept (diff) | |
| download | yuzu-041eb5bf57f4db8609341c77bd5d38ddcd8b2d80.tar.gz yuzu-041eb5bf57f4db8609341c77bd5d38ddcd8b2d80.tar.xz yuzu-041eb5bf57f4db8609341c77bd5d38ddcd8b2d80.zip | |
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 a0522bca0..1083638a9 100644 --- a/src/core/hle/kernel/hle_ipc.h +++ b/src/core/hle/kernel/hle_ipc.h | |||
| @@ -304,7 +304,7 @@ public: | |||
| 304 | */ | 304 | */ |
| 305 | template <typename T, typename = std::enable_if_t<!std::is_pointer_v<T>>> | 305 | template <typename T, typename = std::enable_if_t<!std::is_pointer_v<T>>> |
| 306 | std::size_t WriteBuffer(const T& data, std::size_t buffer_index = 0) const { | 306 | std::size_t WriteBuffer(const T& data, std::size_t buffer_index = 0) const { |
| 307 | if constexpr (Common::IsSTLContainer<T>) { | 307 | if constexpr (Common::IsContiguousContainer<T>) { |
| 308 | using ContiguousType = typename T::value_type; | 308 | using ContiguousType = typename T::value_type; |
| 309 | static_assert(std::is_trivially_copyable_v<ContiguousType>, | 309 | static_assert(std::is_trivially_copyable_v<ContiguousType>, |
| 310 | "Container to WriteBuffer must contain trivially copyable objects"); | 310 | "Container to WriteBuffer must contain trivially copyable objects"); |