From 7278a22eb28ac11787685003835ab0a6e49261ee Mon Sep 17 00:00:00 2001 From: Nik Date: Sun, 24 Aug 2025 13:34:47 +0200 Subject: [PATCH] includes/std: Fix MagicSearch implementation not being found --- includes/std/mem.pat | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/includes/std/mem.pat b/includes/std/mem.pat index 9406ba6..b56e2b7 100644 --- a/includes/std/mem.pat +++ b/includes/std/mem.pat @@ -227,16 +227,6 @@ namespace auto std::mem { return builtin::std::mem::current_bit_offset(); }; - - /** - Searches for a sequence of bytes and places the given type at that address - @tparam Magic The magic sequence to search for - @tparam T The type to place at the address - */ - struct MagicSearch { - std::mem::impl::MagicSearchImpl impl[while(!std::mem::eof())] [[inline]]; - }; - /** Reinterprets a value as a different one @tparam From The type to reinterpret from @@ -285,4 +275,13 @@ namespace auto std::mem { } + /** + Searches for a sequence of bytes and places the given type at that address + @tparam Magic The magic sequence to search for + @tparam T The type to place at the address + */ + struct MagicSearch { + std::mem::impl::MagicSearchImpl impl[while(!std::mem::eof())] [[inline]]; + }; + }