Merge pull request #79 from stac47/fix_deprecated_copy

Fix gcc -Wdeprecated-copy
This commit is contained in:
jzmaddock
2020-01-07 18:54:04 +00:00
committed by GitHub

View File

@ -50,6 +50,8 @@ class regex_iterator_implementation
public: public:
regex_iterator_implementation(const regex_type* p, BidirectionalIterator last, match_flag_type f) regex_iterator_implementation(const regex_type* p, BidirectionalIterator last, match_flag_type f)
: base(), end(last), re(*p), flags(f){} : base(), end(last), re(*p), flags(f){}
regex_iterator_implementation(const regex_iterator_implementation& other)
:what(other.what), base(other.base), end(other.end), re(other.re), flags(other.flags){}
bool init(BidirectionalIterator first) bool init(BidirectionalIterator first)
{ {
base = first; base = first;