summaryrefslogtreecommitdiff
path: root/pcrecpp.h
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-09-19 08:57:53 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-09-19 08:57:53 +0000
commit0737a2bfd72b8a09a9f72998fa911d184138cfaa (patch)
treed32b2ccfaf2c397c3fececf1093072de9616ea90 /pcrecpp.h
parentdbb500d89f45990d3d78be57e1e0b74bdc4f2b1c (diff)
downloadpcre-0737a2bfd72b8a09a9f72998fa911d184138cfaa.tar.gz
Patches to C++ code to avoid compiler warnings.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@256 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcrecpp.h')
-rw-r--r--pcrecpp.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/pcrecpp.h b/pcrecpp.h
index c3c536c..646b999 100644
--- a/pcrecpp.h
+++ b/pcrecpp.h
@@ -491,10 +491,16 @@ class PCRECPP_EXP_DEFN RE {
public:
// We provide implicit conversions from strings so that users can
// pass in a string or a "const char*" wherever an "RE" is expected.
- RE(const char* pat) { Init(pat, NULL); }
- RE(const char *pat, const RE_Options& option) { Init(pat, &option); }
RE(const string& pat) { Init(pat, NULL); }
RE(const string& pat, const RE_Options& option) { Init(pat, &option); }
+ RE(const char* pat) { Init(pat, NULL); }
+ RE(const char* pat, const RE_Options& option) { Init(pat, &option); }
+ RE(const unsigned char* pat) {
+ Init(reinterpret_cast<const char*>(pat), NULL);
+ }
+ RE(const unsigned char* pat, const RE_Options& option) {
+ Init(reinterpret_cast<const char*>(pat), &option);
+ }
// Copy constructor & assignment - note that these are expensive
// because they recompile the expression.