#include <Arduino.h>

//TODO(edcoyne): remove this when it is present upstream.
// Currently this is needed to use std::string on Arduino.
namespace std{
void __throw_out_of_range(const char* str) {
    panic();
}
}

#include <Arduino.h>

//TODO(edcoyne): remove this when it is present upstream.
// Currently this is needed to use std::string on Arduino.
namespace std{
void __attribute__((weak)) __throw_out_of_range(const char* str) {
    panic();
}
}

Change function to weak declaration
Change function to weak declaration
