# | Line 25 | Line 25 | public: | |
---|---|---|
25 | ||
26 | Binary::Binary(std::string& string, bool signed_) : bytes(string.size() / 8, 0) | |
27 | { | |
28 | + | if (string.find_first_not_of("01") != std::string::npos) throw; |
29 | + | |
30 | std::string::size_type off(string.size() % 8); | |
31 | ||
32 | if (off != 0) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |