Skip to content

Commit

Permalink
Fixed compiler error
Browse files Browse the repository at this point in the history
  • Loading branch information
bbuchfink committed Jan 23, 2025
1 parent 7d2a7d1 commit 70da0b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/align/align.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "util/async_buffer.h"
#include "util/parallel/thread_pool.h"
#include "extend.h"
#include "util/util.h"
#ifdef WITH_DNA
#include "../dna/extension.h"
#endif
Expand Down
3 changes: 3 additions & 0 deletions src/util/string/tokenizer_dyn.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ struct TokenizerBase {
const char* ptr() const {
return ptr_;
}
virtual ~TokenizerBase() {}
virtual std::string operator*() const = 0;
virtual TokenizerBase& operator++() = 0;
const char* ptr_, * end_;
Expand All @@ -59,6 +60,7 @@ struct CharTokenizer : public TokenizerBase {
virtual std::string operator*() const override {
return std::string(ptr_, std::find(ptr_, end_, delimiter_));
}
virtual ~CharTokenizer() {}
virtual CharTokenizer& operator++() override {
ptr_ = std::find(ptr_, end_, delimiter_);
#ifndef NDEBUG
Expand All @@ -82,6 +84,7 @@ struct MultiCharTokenizer : public TokenizerBase {
virtual std::string operator*() const override {
return std::string(ptr_, std::search(ptr_, end_, delimiter_.begin(), delimiter_.end()));
}
virtual ~MultiCharTokenizer() {}
virtual MultiCharTokenizer& operator++() override {
ptr_ = std::search(ptr_, end_, delimiter_.begin(), delimiter_.end());
#ifndef NDEBUG
Expand Down

0 comments on commit 70da0b6

Please # to comment.