blob: b203fe72ff5d74b9d5fd498813680d12b83a3de5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
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.
|