Skip to content

Commit bd1fec5

Browse files
Epiread: added a constructor to make an epiread from a line from a states file
1 parent 6b68f66 commit bd1fec5

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/common/Epiread.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@
2222
#include "smithlab_utils.hpp"
2323

2424
struct epiread {
25-
std::string chr;
26-
size_t pos;
27-
std::string seq;
28-
epiread() {}
25+
std::string chr{};
26+
size_t pos{};
27+
std::string seq{};
28+
epiread() = default;
29+
epiread(const std::string &line);
2930
epiread(const size_t p, const std::string &s) : pos(p), seq(s) {}
3031
epiread(const std::string &c, const size_t p, const std::string &s)
3132
: chr(c), pos(p), seq(s) {}

0 commit comments

Comments
 (0)