Skip to content

Commit 34f8f71

Browse files
committed
Added code snippet that will allow strings to work for us until this is present upstream
1 parent 4460159 commit 34f8f71

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/throw_out_of_range.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include <Arduino.h>
2+
3+
//TODO(edcoyne): remove this when it is present upstream.
4+
// Currently this is needed to use std::string on Arduino.
5+
namespace std{
6+
void __throw_out_of_range(const char* str) {
7+
panic();
8+
}
9+
}

0 commit comments

Comments
 (0)