mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-13 02:05:51 +00:00
Compile fixes
This commit is contained in:
parent
d07cbf6944
commit
fbb5b86401
2
hecl/extern/athena
vendored
2
hecl/extern/athena
vendored
@ -1 +1 @@
|
|||||||
Subproject commit e8d6c2abe74313382fac3a43035cf53e2ccee782
|
Subproject commit 276db8ea56b8b82c3a15b8a50052084d72334132
|
@ -204,7 +204,7 @@ template <> \
|
|||||||
template <> \
|
template <> \
|
||||||
inline void hecl::TypedVariantBigDNA<__VA_ARGS__>::Enumerate<athena::io::DNA<athena::Big>::Read>(typename Read::StreamT & r) { \
|
inline void hecl::TypedVariantBigDNA<__VA_ARGS__>::Enumerate<athena::io::DNA<athena::Big>::Read>(typename Read::StreamT & r) { \
|
||||||
EnumType variant_type = {}; \
|
EnumType variant_type = {}; \
|
||||||
Do<athena::io::DNA<athena::Big>::Read>({"variant_type"}, variant_type, r); \
|
Do<athena::io::DNA<athena::Big>::Read>(athena::io::PropId("variant_type"), variant_type, r); \
|
||||||
static_cast<TypedVariant<__VA_ARGS__>&>(*this) = Build(variant_type); \
|
static_cast<TypedVariant<__VA_ARGS__>&>(*this) = Build(variant_type); \
|
||||||
visit([&](auto& var) { var.read(r); }); \
|
visit([&](auto& var) { var.read(r); }); \
|
||||||
} \
|
} \
|
||||||
@ -215,7 +215,7 @@ inline void hecl::TypedVariantBigDNA<__VA_ARGS__>::Enumerate<athena::io::DNA<ath
|
|||||||
visit([&](auto& var) { \
|
visit([&](auto& var) { \
|
||||||
using T = std::decay_t<decltype(var)>; \
|
using T = std::decay_t<decltype(var)>; \
|
||||||
EnumType variant_type = T::variant_type(); \
|
EnumType variant_type = T::variant_type(); \
|
||||||
Do<athena::io::DNA<athena::Big>::Write>({"variant_type"}, variant_type, w); \
|
Do<athena::io::DNA<athena::Big>::Write>(athena::io::PropId("variant_type"), variant_type, w); \
|
||||||
var.write(w); \
|
var.write(w); \
|
||||||
}); \
|
}); \
|
||||||
} \
|
} \
|
||||||
@ -226,7 +226,7 @@ inline void hecl::TypedVariantBigDNA<__VA_ARGS__>::Enumerate<athena::io::DNA<ath
|
|||||||
visit([&](auto& var) { \
|
visit([&](auto& var) { \
|
||||||
using T = std::decay_t<decltype(var)>; \
|
using T = std::decay_t<decltype(var)>; \
|
||||||
EnumType variant_type = T::variant_type(); \
|
EnumType variant_type = T::variant_type(); \
|
||||||
Do<athena::io::DNA<athena::Big>::BinarySize>({"variant_type"}, variant_type, sz); \
|
Do<athena::io::DNA<athena::Big>::BinarySize>(athena::io::PropId("variant_type"), variant_type, sz); \
|
||||||
var.binarySize(sz); \
|
var.binarySize(sz); \
|
||||||
}); \
|
}); \
|
||||||
} \
|
} \
|
||||||
@ -241,7 +241,7 @@ template <> \
|
|||||||
template <> \
|
template <> \
|
||||||
inline void hecl::TypedVariantBigDNA<__VA_ARGS__>::Enumerate<athena::io::DNA<athena::Big>::ReadYaml>(typename ReadYaml::StreamT & r) { \
|
inline void hecl::TypedVariantBigDNA<__VA_ARGS__>::Enumerate<athena::io::DNA<athena::Big>::ReadYaml>(typename ReadYaml::StreamT & r) { \
|
||||||
EnumType variant_type = {}; \
|
EnumType variant_type = {}; \
|
||||||
Do<athena::io::DNA<athena::Big>::ReadYaml>({"variant_type"}, variant_type, r); \
|
Do<athena::io::DNA<athena::Big>::ReadYaml>(athena::io::PropId("variant_type"), variant_type, r); \
|
||||||
static_cast<TypedVariant<__VA_ARGS__>&>(*this) = Build(variant_type); \
|
static_cast<TypedVariant<__VA_ARGS__>&>(*this) = Build(variant_type); \
|
||||||
visit([&](auto& var) { var.read(r); }); \
|
visit([&](auto& var) { var.read(r); }); \
|
||||||
} \
|
} \
|
||||||
@ -252,7 +252,7 @@ inline void hecl::TypedVariantBigDNA<__VA_ARGS__>::Enumerate<athena::io::DNA<ath
|
|||||||
visit([&](auto& var) { \
|
visit([&](auto& var) { \
|
||||||
using T = std::decay_t<decltype(var)>; \
|
using T = std::decay_t<decltype(var)>; \
|
||||||
EnumType variant_type = T::variant_type(); \
|
EnumType variant_type = T::variant_type(); \
|
||||||
Do<athena::io::DNA<athena::Big>::WriteYaml>({"variant_type"}, variant_type, w); \
|
Do<athena::io::DNA<athena::Big>::WriteYaml>(athena::io::PropId("variant_type"), variant_type, w); \
|
||||||
var.write(w); \
|
var.write(w); \
|
||||||
}); \
|
}); \
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user