mirror of https://github.com/libAthena/athena.git
Fix AT_SPECIALIZE_* endian references
This commit is contained in:
parent
2ab6a6d75d
commit
a9039e04e6
|
@ -1148,29 +1148,29 @@ void __BinarySizeProp64(const T& obj, size_t& s) {
|
||||||
#define AT_SUBSPECIALIZE_DNA(...) \
|
#define AT_SUBSPECIALIZE_DNA(...) \
|
||||||
template <> \
|
template <> \
|
||||||
template <> \
|
template <> \
|
||||||
void __VA_ARGS__::Enumerate<athena::io::DNA<athena::Big>::BinarySize>(typename BinarySize::StreamT & s) { \
|
void __VA_ARGS__::Enumerate<athena::io::DNA<athena::Endian::Big>::BinarySize>(typename BinarySize::StreamT & s) { \
|
||||||
_binarySize(s); \
|
_binarySize(s); \
|
||||||
} \
|
} \
|
||||||
template <> \
|
template <> \
|
||||||
template <> \
|
template <> \
|
||||||
void __VA_ARGS__::Enumerate<athena::io::DNA<athena::Big>::Read>(typename Read::StreamT & r) { \
|
void __VA_ARGS__::Enumerate<athena::io::DNA<athena::Endian::Big>::Read>(typename Read::StreamT & r) { \
|
||||||
_read(r); \
|
_read(r); \
|
||||||
} \
|
} \
|
||||||
template <> \
|
template <> \
|
||||||
template <> \
|
template <> \
|
||||||
void __VA_ARGS__::Enumerate<athena::io::DNA<athena::Big>::Write>(typename Write::StreamT & w) { \
|
void __VA_ARGS__::Enumerate<athena::io::DNA<athena::Endian::Big>::Write>(typename Write::StreamT & w) { \
|
||||||
_write(w); \
|
_write(w); \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define AT_SUBSPECIALIZE_DNA_YAML(...) \
|
#define AT_SUBSPECIALIZE_DNA_YAML(...) \
|
||||||
template <> \
|
template <> \
|
||||||
template <> \
|
template <> \
|
||||||
void __VA_ARGS__::Enumerate<athena::io::DNA<athena::Big>::ReadYaml>(typename ReadYaml::StreamT & r) { \
|
void __VA_ARGS__::Enumerate<athena::io::DNA<athena::Endian::Big>::ReadYaml>(typename ReadYaml::StreamT & r) { \
|
||||||
_read(r); \
|
_read(r); \
|
||||||
} \
|
} \
|
||||||
template <> \
|
template <> \
|
||||||
template <> \
|
template <> \
|
||||||
void __VA_ARGS__::Enumerate<athena::io::DNA<athena::Big>::WriteYaml>(typename WriteYaml::StreamT & w) { \
|
void __VA_ARGS__::Enumerate<athena::io::DNA<athena::Endian::Big>::WriteYaml>(typename WriteYaml::StreamT & w) { \
|
||||||
_write(w); \
|
_write(w); \
|
||||||
} \
|
} \
|
||||||
AT_SUBSPECIALIZE_DNA(__VA_ARGS__)
|
AT_SUBSPECIALIZE_DNA(__VA_ARGS__)
|
||||||
|
|
Loading…
Reference in New Issue