aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/re2/patches/tstring-into-piece.patch
diff options
context:
space:
mode:
authormaxim-yurchuk <maxim-yurchuk@yandex-team.com>2024-10-09 12:29:46 +0300
committermaxim-yurchuk <maxim-yurchuk@yandex-team.com>2024-10-09 13:14:22 +0300
commit9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80 (patch)
treea8fb3181d5947c0d78cf402aa56e686130179049 /contrib/libs/re2/patches/tstring-into-piece.patch
parenta44b779cd359f06c3ebbef4ec98c6b38609d9d85 (diff)
downloadydb-9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80.tar.gz
publishFullContrib: true for ydb
<HIDDEN_URL> commit_hash:c82a80ac4594723cebf2c7387dec9c60217f603e
Diffstat (limited to 'contrib/libs/re2/patches/tstring-into-piece.patch')
-rw-r--r--contrib/libs/re2/patches/tstring-into-piece.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/libs/re2/patches/tstring-into-piece.patch b/contrib/libs/re2/patches/tstring-into-piece.patch
new file mode 100644
index 0000000000..b203fe72ff
--- /dev/null
+++ b/contrib/libs/re2/patches/tstring-into-piece.patch
@@ -0,0 +1,11 @@
+--- a/re2/re2.h (index)
++++ a/re2/re2.h (working tree)
+@@ -280,6 +280,8 @@ class RE2 {
+ #endif
+ RE2(absl::string_view pattern);
+ RE2(absl::string_view pattern, const Options& options);
++ // ambiguity resolution.
++ RE2(const TString& pattern) : RE2(StringPiece(pattern)) {}
+ ~RE2();
+
+ // Returns whether RE2 was created properly.