Skip to content

Commit 2e19ce0

Browse files
committed
fix(MPU): Use std::ranges::find instead of contains to pass checks
1 parent aac818f commit 2e19ce0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Inc/HALAL/Models/MPU.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ struct MPUDomain {
132132
sizeof(T)}
133133
{
134134
static_assert(alignof(T) <= 32, "Requested type has alignment greater than cache line size (32 bytes).");
135-
static_assert(std::ranges::contains(alignments, alignof(T)), "Requested type has alignment not supported by MPU buffer system.");
135+
static_assert(std::ranges::find(alignments, alignof(T)) != std::ranges::end(alignments), "Requested type has alignment not supported by MPU buffer system.");
136136
}
137137

138138
template <class Ctx>

0 commit comments

Comments
 (0)