aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorMai <mathew1800@gmail.com>2022-10-26 15:12:48 +0000
committerGitHub <noreply@github.com>2022-10-26 15:12:48 +0000
commit049bf101cd14a7220deb2fa5044e68a85ce6ed2d (patch)
treef8df340674b1480f3e0f53a9d21b7fa6fbb350f3 /src/core
parent22acf5cddb2047bb2b2ff0a2d6b9329915ff14a3 (diff)
parent89ace6c3673e57b7ec8a79b1c88c8c1ae9f55c5c (diff)
Merge pull request #9131 from Morph1984/contiguous
concepts: Use the std::contiguous_iterator concept
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/kernel/hle_ipc.h2
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");