summaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/yt/memory/ref_tracked.h4
-rw-r--r--library/cpp/yt/misc/strong_typedef.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/library/cpp/yt/memory/ref_tracked.h b/library/cpp/yt/memory/ref_tracked.h
index df6a06fcf07..a53f45a9b0d 100644
--- a/library/cpp/yt/memory/ref_tracked.h
+++ b/library/cpp/yt/memory/ref_tracked.h
@@ -13,10 +13,10 @@ namespace NYT {
////////////////////////////////////////////////////////////////////////////////
-YT_DEFINE_STRONG_TYPEDEF(TRefCountedTypeCookie, int)
+YT_DEFINE_STRONG_TYPEDEF(TRefCountedTypeCookie, int);
constexpr TRefCountedTypeCookie NullRefCountedTypeCookie{-1};
-YT_DEFINE_STRONG_TYPEDEF(TRefCountedTypeKey, const std::type_info*)
+YT_DEFINE_STRONG_TYPEDEF(TRefCountedTypeKey, const std::type_info*);
////////////////////////////////////////////////////////////////////////////////
diff --git a/library/cpp/yt/misc/strong_typedef.h b/library/cpp/yt/misc/strong_typedef.h
index 074d523e226..a365bca24bb 100644
--- a/library/cpp/yt/misc/strong_typedef.h
+++ b/library/cpp/yt/misc/strong_typedef.h
@@ -67,6 +67,7 @@ private:
struct T ## Tag \
{ }; \
using T = ::NYT::TStrongTypedef<TUnderlying, T##Tag>; \
+ static_assert(true)
template <class T>
struct TStrongTypedefTraits;