Question: Poco::Glob::match() #4224
Unanswered
shailcompsit
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my project I need to use Poco::Glob::match() on a const Glob pattern object.
e.g.
This gives me compilation time error:
passing ‘const Poco::Glob’ as ‘this’ argument of ‘bool Poco::Glob::match(const string&)’ discards qualifiers [-fpermissive]
My question is, Poco::Glob::match() does not change
_pattern
and_options
, then why not make it a const function?I see Poco::RegularExpression::match() being defined as const.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions