From 24085f38e87f66b2e471fe88c348153a8e5377e1 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 13 Apr 2024 00:35:49 -0500 Subject: [PATCH] [ox/std] Replace ox::ignore with std::ignore --- deps/nostalgia/deps/ox/src/ox/std/ignore.hpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/deps/nostalgia/deps/ox/src/ox/std/ignore.hpp b/deps/nostalgia/deps/ox/src/ox/std/ignore.hpp index 771cb7e..5ce40f0 100644 --- a/deps/nostalgia/deps/ox/src/ox/std/ignore.hpp +++ b/deps/nostalgia/deps/ox/src/ox/std/ignore.hpp @@ -4,10 +4,17 @@ #pragma once -namespace ox { +#if __has_include() + +#include + +#else + +namespace std { inline constexpr struct { constexpr void operator=(auto&&) const noexcept {} } ignore; -} \ No newline at end of file +} +#endif