aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormikhnenko <mikhnenko@yandex-team.com>2024-10-29 09:55:14 +0300
committermikhnenko <mikhnenko@yandex-team.com>2024-10-29 10:09:38 +0300
commitc601714889782038bbf3d6f9543fe090ad3ce681 (patch)
treef1a9e87bb6fa88073499eed074053ebb1b6823b9
parent951b23b132d746894dce79549b664284d84ca912 (diff)
downloadydb-c601714889782038bbf3d6f9543fe090ad3ce681.tar.gz
Add specialization for TString. Preparation for methods removing
commit_hash:022cf546edf10db76dc94b3bc83aad5e07ba5da1
-rw-r--r--library/cpp/blockcodecs/core/codecs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/library/cpp/blockcodecs/core/codecs.h b/library/cpp/blockcodecs/core/codecs.h
index 9c93c00274..6512abddef 100644
--- a/library/cpp/blockcodecs/core/codecs.h
+++ b/library/cpp/blockcodecs/core/codecs.h
@@ -25,6 +25,12 @@ namespace NBlockCodecs {
: TStringBuf((const char*)t.Data(), t.Size())
{
}
+
+ template <>
+ inline TData(const TString& t)
+ : TStringBuf((const char*)t.data(), t.size())
+ {
+ }
};
struct TCodecError: public yexception {