Skip to content

Commit 7278a22

Browse files
authored
includes/std: Fix MagicSearch implementation not being found
1 parent 91fd360 commit 7278a22

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

includes/std/mem.pat

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -227,16 +227,6 @@ namespace auto std::mem {
227227
return builtin::std::mem::current_bit_offset();
228228
};
229229

230-
231-
/**
232-
Searches for a sequence of bytes and places the given type at that address
233-
@tparam Magic The magic sequence to search for
234-
@tparam T The type to place at the address
235-
*/
236-
struct MagicSearch<auto Magic, T> {
237-
std::mem::impl::MagicSearchImpl<Magic, T> impl[while(!std::mem::eof())] [[inline]];
238-
};
239-
240230
/**
241231
Reinterprets a value as a different one
242232
@tparam From The type to reinterpret from
@@ -285,4 +275,13 @@ namespace auto std::mem {
285275

286276
}
287277

278+
/**
279+
Searches for a sequence of bytes and places the given type at that address
280+
@tparam Magic The magic sequence to search for
281+
@tparam T The type to place at the address
282+
*/
283+
struct MagicSearch<auto Magic, T> {
284+
std::mem::impl::MagicSearchImpl<Magic, T> impl[while(!std::mem::eof())] [[inline]];
285+
};
286+
288287
}

0 commit comments

Comments
 (0)