Skip to content

Commit

Permalink
Make things compile with C++17.
Browse files Browse the repository at this point in the history
  • Loading branch information
ugermann committed Feb 11, 2021
1 parent 41ff5b6 commit 08ba343
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service/common/translation_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class TranslationService {
auto devices = Config::getDevices(options_);
for (auto d: devices) {
// callback() is not static, so we must wrap it in a lambda:
auto cb = [=](Ptr<History const> h) { this->callback_(h); };
auto cb = [this](Ptr<History const> h) { this->callback_(h); };
auto w = New<TranslationWorker>(d, vocabs_, slgen_, jq_, cb, options_);
w->template start<Search>();
workers_.push_back(w);
Expand All @@ -89,7 +89,7 @@ class TranslationService {
const std::string& input,
const TranslationOptions* topts=NULL,
const size_t priority=0, // currently has no effect, yet to be implemented
std::function<void (Ptr<Job> j)> callback =[=](Ptr<Job> j){return;});
std::function<void (Ptr<Job> j)> callback =[](Ptr<Job> j){return;});


void stop();
Expand Down

0 comments on commit 08ba343

Please sign in to comment.