diff options
author | Murray Cumming <murrayc@murrayc.com> | 2013-07-04 10:27:35 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2013-07-04 10:27:35 +0200 |
commit | e6d6f039698b043b244e01996e36efa7a10d5a6e (patch) | |
tree | 73ba5e2e6b41564f80eb0b92e6f5ea03265957c2 /examples/regex/main.cc | |
parent | faed34a714d9c4cc5cb0fe4fb522ad206f7e8760 (diff) | |
download | glibmm-c++11.tar.gz |
C++11: examples: more use of auto.c++11
Diffstat (limited to 'examples/regex/main.cc')
-rw-r--r-- | examples/regex/main.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/regex/main.cc b/examples/regex/main.cc index 624b3284..ed6ac567 100644 --- a/examples/regex/main.cc +++ b/examples/regex/main.cc @@ -24,7 +24,7 @@ int main(int, char**) Glib::init(); /* Reusing one regex pattern: */ - auto regex = Glib::Regex::create("(a)?(b)"); + const auto regex = Glib::Regex::create("(a)?(b)"); std::cout << "Pattern=" << regex->get_pattern() << ", with string=abcd, result=" << std::boolalpha << regex->match("abcd") |