diff --git a/deps/ox/src/ox/preloader/preloader.hpp b/deps/ox/src/ox/preloader/preloader.hpp index 3a2f53dc..822daef9 100644 --- a/deps/ox/src/ox/preloader/preloader.hpp +++ b/deps/ox/src/ox/preloader/preloader.hpp @@ -23,14 +23,8 @@ namespace ox { template class Preloader; -template -constexpr ox::Error preload(Preloader *pl, ox::CommonPtrWith auto *obj) noexcept; - template class Preloader: public ModelHandlerBase> { - template - friend constexpr ox::Error preload(Preloader *pl, ox::CommonPtrWith auto *obj) noexcept; - private: using PtrType = typename PlatSpec::PtrType; static constexpr auto PtrSize = sizeof(PtrType); @@ -119,7 +113,6 @@ class Preloader: public ModelHandlerBase> { return ox::OpType::Write; } - protected: template constexpr ox::Error pad(const T*) noexcept; @@ -359,8 +352,7 @@ constexpr bool Preloader::unionCheckAndIt() noexcept { } template -constexpr ox::Error preload( - Preloader *pl, ox::CommonPtrWith auto *obj) noexcept { +constexpr ox::Error preload(Preloader *pl, ox::CommonPtrWith auto *obj) noexcept { oxReturnError(model(pl->interface(), obj)); return pl->pad(obj); }