diff options
author | babenko <babenko@yandex-team.com> | 2024-06-22 15:45:29 +0300 |
---|---|---|
committer | babenko <babenko@yandex-team.com> | 2024-06-22 15:57:04 +0300 |
commit | ce7290ebbdeb010502ede0b26ea23dee94661841 (patch) | |
tree | 5b7eeef08b33c27280b2b02996934acd4b4a4fa0 | |
parent | 7f84e69a2db386cca15e6fc1dafeb1395c516463 (diff) | |
download | ydb-ce7290ebbdeb010502ede0b26ea23dee94661841.tar.gz |
Enable empty init list in YT_DEFINE_GLOBAL
e52d229afddf7db640499d3856bc55f2b7360bb4
-rw-r--r-- | library/cpp/yt/misc/global.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cpp/yt/misc/global.h b/library/cpp/yt/misc/global.h index df831b50c3..c8bc2c03f0 100644 --- a/library/cpp/yt/misc/global.h +++ b/library/cpp/yt/misc/global.h @@ -8,6 +8,6 @@ #define YT_DEFINE_GLOBAL(type, name, ...) \ inline type& name() \ { \ - static type result(__VA_ARGS__); \ + static type result{__VA_ARGS__}; \ return result; \ } |