Warning fixes in examples and tests

This commit is contained in:
Martin Hořeňovský 2019-10-31 14:29:59 +01:00
parent 3136c4fb6a
commit 776a4686c7
No known key found for this signature in database
GPG key ID: DE48307B8B0D381A
3 changed files with 16 additions and 7 deletions

View file

@ -22,15 +22,17 @@ public:
}
}
std::string const& get() const override {
return m_line;
}
std::string const& get() const override;
bool next() override {
return !!std::getline(m_stream, m_line);
}
};
std::string const& get() const {
return m_line;
}
// This helper function provides a nicer UX when instantiating the generator
// Notice that it returns an instance of GeneratorWrapper<std::string>, which
// is a value-wrapper around std::unique_ptr<IGenerator<std::string>>.