File tree 3 files changed +3
-4
lines changed
3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
.PHONY : all clean
2
2
3
3
# -ftemplate-depth-1024 -ftemplate-backtrace-limit=0
4
- override CXXFLAGS += -std=c++1z -Wno-gnu-string-literal-operator-template -O3
4
+ override CXXFLAGS += -std=c++1z -Wno-gnu-string-literal-operator-template -O3 -Iinclude
5
5
6
6
override TARGETS := math regexp pregexp code-size-test catch-regexp-example
7
7
Original file line number Diff line number Diff line change 2
2
#include " static-regexp/string.hpp"
3
3
#include " static-regexp/static-regexp.hpp"
4
4
5
- #include < iostream>
6
5
#include < cassert>
7
6
8
7
/*
Original file line number Diff line number Diff line change @@ -123,10 +123,10 @@ class DynamicMemory {
123
123
data.emplace_back (std::forward<PositionPair>(pair));
124
124
}
125
125
const PositionPair * begin () const {
126
- return &* data.cbegin ();
126
+ return data. empty () ? nullptr : & data.front ();
127
127
}
128
128
const PositionPair * end () const {
129
- return &* data.cend () ;
129
+ return data. empty () ? nullptr : & data.back () + 1 ;
130
130
}
131
131
CatchRange getRange () const {
132
132
return {begin (),end ()};
You can’t perform that action at this time.
0 commit comments