aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2021-10-31 17:47:59 +0100
committerTor Egge <Tor.Egge@online.no>2021-10-31 17:47:59 +0100
commit71ad14edcb175c0353cc243f690c830c772c8d15 (patch)
treef84c1be5e3bd3c1cf8fdc0ae88ee6c41608cb26e /searchlib
parent728576fef4bd8ec18f4baf57f1d45bda4423b47e (diff)
Fix compilation when using gcc 9:
- Include header file for atomic when needed. - Use normal function template instead of abbreviated function template.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/common/unique_issues.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/common/unique_issues.h b/searchlib/src/vespa/searchlib/common/unique_issues.h
index 79cb7a9aa23..17c42da060c 100644
--- a/searchlib/src/vespa/searchlib/common/unique_issues.h
+++ b/searchlib/src/vespa/searchlib/common/unique_issues.h
@@ -18,7 +18,8 @@ private:
public:
using UP = std::unique_ptr<UniqueIssues>;
void handle(const vespalib::Issue &issue) override;
- void for_each_message(auto fun) const {
+ template <class Function>
+ void for_each_message(Function fun) const {
for (const auto &msg: _messages) {
fun(msg);
}