aboutsummaryrefslogtreecommitdiffstats
path: root/util/ysaveload.h
diff options
context:
space:
mode:
authorbulatman <bulatman@yandex-team.com>2023-06-08 20:05:16 +0300
committerbulatman <bulatman@yandex-team.com>2023-06-08 20:05:16 +0300
commitdf6af3ee4741c667cf0c449696f768186bdc5752 (patch)
tree21ad8fed13c87e0ebec4bb5456f667a79d11c745 /util/ysaveload.h
parent8642bc755ab5b51752619694224388b2d247c737 (diff)
downloadydb-df6af3ee4741c667cf0c449696f768186bdc5752.tar.gz
Require semicolon after saveload macroses
Diffstat (limited to 'util/ysaveload.h')
-rw-r--r--util/ysaveload.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/util/ysaveload.h b/util/ysaveload.h
index 02efb4049b..f3451e2ad5 100644
--- a/util/ysaveload.h
+++ b/util/ysaveload.h
@@ -8,6 +8,7 @@
#include <util/generic/algorithm.h>
#include <util/stream/output.h>
#include <util/stream/input.h>
+#include <util/system/compiler.h>
#ifndef __NVCC__
// cuda is compiled in C++14 mode at the time
@@ -710,7 +711,8 @@ static inline void LoadMany(S* s, Ts&... t) {
\
inline void Load(IInputStream* s) { \
::LoadMany(s, __VA_ARGS__); \
- }
+ } \
+ Y_SEMICOLON_GUARD
#define Y_SAVELOAD_DEFINE_OVERRIDE(...) \
void Save(IOutputStream* s) const override { \
@@ -719,7 +721,8 @@ static inline void LoadMany(S* s, Ts&... t) {
\
void Load(IInputStream* s) override { \
::LoadMany(s, __VA_ARGS__); \
- }
+ } \
+ Y_SEMICOLON_GUARD
template <class T>
struct TNonVirtualSaver {