X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/4c66fad9b489e2bda236a1a46c23c64cb774ea05..252f30db1bdb676fa6b5bdc3a664541582c78b3a:/CyteKit/RegEx.hpp diff --git a/CyteKit/RegEx.hpp b/CyteKit/RegEx.hpp index 8892a3e8..40068a77 100644 --- a/CyteKit/RegEx.hpp +++ b/CyteKit/RegEx.hpp @@ -58,14 +58,18 @@ class RegEx { { } - RegEx(const char *regex, NSString *data = nil) : + RegEx(const char *regex) : regex_(NULL), size_(_not(size_t)) { this->operator =(regex); + } - if (data != nil) - this->operator ()(data); + template + RegEx(const char *regex, const Type_ &data) : + RegEx(regex) + { + this->operator ()(data); } void operator =(const char *regex) {