Skip to content

Commit bc4224d

Browse files
committed
Merge remote-tracking branch 'origin/master' into pybind11
2 parents d651d82 + badcac8 commit bc4224d

File tree

1 file changed

+3
-4
lines changed
  • core/include/core

1 file changed

+3
-4
lines changed

core/include/core/G3.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,17 @@ CEREAL_CLASS_VERSION(x, version); \
1818
CEREAL_REGISTER_TYPE_WITH_NAME(x, #x); \
1919
CEREAL_SPECIALIZE_FOR_ALL_ARCHIVES(x, cereal::specialization::member_load_save);
2020

21-
// Serialization versioning
2221
template <class T>
2322
inline uint32_t
24-
_g3_class_version(T *)
23+
g3_class_version(T *)
2524
{
2625
return cereal::detail::Version<T>::version;
2726
}
2827

2928
#define G3_CHECK_VERSION(v) \
30-
if ((uint32_t)v > _g3_class_version(this)) \
29+
if ((uint32_t)v > g3_class_version(this)) \
3130
log_fatal("Trying to read newer class version (%d) than " \
3231
"supported (%d). Please upgrade your software.", v, \
33-
_g3_class_version(this));
32+
g3_class_version(this));
3433

3534
#endif

0 commit comments

Comments
 (0)