From 8d5ed0e6d5b1417d5382d32b588efb213f44aa34 Mon Sep 17 00:00:00 2001 From: Ulrich Germann Date: Wed, 13 May 2020 17:12:02 +0100 Subject: [PATCH] Get things to compile with gcc-7. --- src/service/common/translation_service.h | 2 +- src/service/rest/rest_server.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/service/common/translation_service.h b/src/service/common/translation_service.h index b91e336..8ddff3d 100644 --- a/src/service/common/translation_service.h +++ b/src/service/common/translation_service.h @@ -77,7 +77,7 @@ public: // callback() is not static, so we must wrap it in a lambda: auto cb = [=](Ptr h) { this->callback_(h); }; auto w = New(d, vocabs_, slgen_, jq_, cb, options_); - w->start(); + w->template start(); workers_.push_back(w); } } diff --git a/src/service/rest/rest_server.cpp b/src/service/rest/rest_server.cpp index 4a5791a..10f95d6 100644 --- a/src/service/rest/rest_server.cpp +++ b/src/service/rest/rest_server.cpp @@ -173,7 +173,7 @@ int main(int argc, char* argv[]) auto options = cp.parseOptions(argc, argv, true); auto service = New(options); - service->start(); + service->template start(); crow::SimpleApp app; std::string doc_root = options->get("server-root");