]> git.ipfire.org Git - thirdparty/squid.git/commit - src/base/RegexPattern.cc
Fixed build on systems needing explicit <utility> in RegexPattern.cc.
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 14 Aug 2016 01:17:57 +0000 (19:17 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Sun, 14 Aug 2016 01:17:57 +0000 (19:17 -0600)
commit6226856f96001f85ff00267c25e5dae545895ccf
tree71bad79bb4cdb3d93e3789e10fd3ebb71f23f712
parent3e8d4ad8b2e28bb038af7d7e576d2a04e8266220
Fixed build on systems needing explicit <utility> in RegexPattern.cc.

... after r14795.

Also removed bogus comments implying that std::move() does something to
its argument. That function is just a type cast; it does nothing else!
We use std::move() so that the compiler picks a move constructor or
assignment (where available). In case of RegexPattern::flags, using
std::move() has no effect because integers do not have those move
methods. However, it may be a good idea to use std::move() anyway
because the type of RegexPattern::flags might change in the future and
for consistency sake. Thus, I did not remove std::move(), only comments.
src/base/RegexPattern.cc