[ox/preloader] Fix for what appears to be a bug in Apple Clang
This commit is contained in:
parent
b797b937f8
commit
5cdf241321
10
deps/ox/src/ox/preloader/preloader.hpp
vendored
10
deps/ox/src/ox/preloader/preloader.hpp
vendored
@ -23,14 +23,8 @@ namespace ox {
|
||||
template<typename PlatSpec>
|
||||
class Preloader;
|
||||
|
||||
template<typename PlatSpec, typename T>
|
||||
constexpr ox::Error preload(Preloader<PlatSpec> *pl, ox::CommonPtrWith<T> auto *obj) noexcept;
|
||||
|
||||
template<typename PlatSpec>
|
||||
class Preloader: public ModelHandlerBase<Preloader<PlatSpec>> {
|
||||
template<typename PS, typename T>
|
||||
friend constexpr ox::Error preload(Preloader<PS> *pl, ox::CommonPtrWith<T> auto *obj) noexcept;
|
||||
|
||||
private:
|
||||
using PtrType = typename PlatSpec::PtrType;
|
||||
static constexpr auto PtrSize = sizeof(PtrType);
|
||||
@ -119,7 +113,6 @@ class Preloader: public ModelHandlerBase<Preloader<PlatSpec>> {
|
||||
return ox::OpType::Write;
|
||||
}
|
||||
|
||||
protected:
|
||||
template<typename T>
|
||||
constexpr ox::Error pad(const T*) noexcept;
|
||||
|
||||
@ -359,8 +352,7 @@ constexpr bool Preloader<PlatSpec>::unionCheckAndIt() noexcept {
|
||||
}
|
||||
|
||||
template<typename PlatSpec, typename T>
|
||||
constexpr ox::Error preload(
|
||||
Preloader<PlatSpec> *pl, ox::CommonPtrWith<T> auto *obj) noexcept {
|
||||
constexpr ox::Error preload(Preloader<PlatSpec> *pl, ox::CommonPtrWith<T> auto *obj) noexcept {
|
||||
oxReturnError(model(pl->interface(), obj));
|
||||
return pl->pad(obj);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user