diff options
| author | mikhnenko <[email protected]> | 2024-10-29 09:55:14 +0300 | 
|---|---|---|
| committer | mikhnenko <[email protected]> | 2024-10-29 10:09:38 +0300 | 
| commit | c601714889782038bbf3d6f9543fe090ad3ce681 (patch) | |
| tree | f1a9e87bb6fa88073499eed074053ebb1b6823b9 /library/cpp/blockcodecs | |
| parent | 951b23b132d746894dce79549b664284d84ca912 (diff) | |
Add specialization for TString. Preparation for methods removing
commit_hash:022cf546edf10db76dc94b3bc83aad5e07ba5da1
Diffstat (limited to 'library/cpp/blockcodecs')
| -rw-r--r-- | library/cpp/blockcodecs/core/codecs.h | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/library/cpp/blockcodecs/core/codecs.h b/library/cpp/blockcodecs/core/codecs.h index 9c93c002748..6512abddefc 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 {  | 
