Commit 8b7c57aa authored by Dominik Charousset's avatar Dominik Charousset

Make all state constructors noexcept

parent b95d96aa
...@@ -34,15 +34,15 @@ struct state { ...@@ -34,15 +34,15 @@ struct state {
int32_t line; int32_t line;
int32_t column; int32_t column;
state() : i(), e(), code(pec::success), line(1), column(1) { state() noexcept : i(), e(), code(pec::success), line(1), column(1) {
// nop // nop
} }
explicit state(Iterator first) : state() { explicit state(Iterator first) noexcept : state() {
i = first; i = first;
} }
state(Iterator first, Sentinel last) : state() { state(Iterator first, Sentinel last) noexcept : state() {
i = first; i = first;
e = last; e = last;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment