2
2
#define PODIO_PODIOVERSION_H
3
3
4
4
#include < cstdint>
5
- #include < sstream>
6
5
#include < ostream>
6
+ #include < sstream>
7
7
#include < tuple>
8
8
#if __cplusplus >= 202002L
9
9
#include < compare>
13
13
// necessary
14
14
15
15
// / Define a version to be used in podio.
16
- #define PODIO_VERSION (major, minor, patch ) \
17
- ((UINT64_C(major) << 32 ) | (UINT64_C(minor) << 16 ) | UINT64_C(patch))
16
+ #define PODIO_VERSION (major, minor, patch ) ((UINT64_C(major) << 32 ) | (UINT64_C(minor) << 16 ) | UINT64_C(patch))
18
17
// / Get the major version from a preprocessor defined version
19
18
#define PODIO_MAJOR_VERSION (v ) (((v) & (-1UL >> 16 )) >> 32 )
20
19
// / Get the minor version from a preprocessor defined version
23
22
#define PODIO_PATCH_VERSION (v ) ((v) & (-1UL >> 48 ))
24
23
25
24
// Some helper constants that are populated by the cmake configure step
26
- #define podio_VERSION_MAJOR @podio_VERSION_MAJOR@
27
- #define podio_VERSION_MINOR @podio_VERSION_MINOR@
28
- #define podio_VERSION_PATCH @podio_VERSION_PATCH@
25
+ #define podio_VERSION_MAJOR @podio_VERSION_MAJOR @
26
+ #define podio_VERSION_MINOR @podio_VERSION_MINOR @
27
+ #define podio_VERSION_PATCH @podio_VERSION_PATCH @
29
28
#define podio_VERSION PODIO_VERSION (podio_VERSION_MAJOR, podio_VERSION_MINOR, podio_VERSION_PATCH)
30
29
31
30
// / The encoded version with which podio has been built
@@ -42,7 +41,7 @@ struct Version {
42
41
uint16_t patch{0 };
43
42
44
43
#if __cplusplus >= 202002L
45
- auto operator <=> (const Version&) const = default ;
44
+ auto operator <= > (const Version&) const = default ;
46
45
#else
47
46
// No spaceship yet in c++17
48
47
#define DEFINE_COMP_OPERATOR (OP ) \
0 commit comments