Reputation: 517
How should I include the regex library in my code? I've notice an old fork of this esp8266 Arduino repository have the regex.h that I think could use but it has string and wstring dependencies so should I add the whole "/bits" directory?
There's a "regex.h" library in the main esp8266 Arduino repository but I think it's a light version just to compile the necessary code and I should add the whole version in the project by my self.
Upvotes: 0
Views: 1236
Reputation: 915
The regex header included as part of the repository is just part of GCC's C++ standard headers. Complete support for C++11's regex was not released until 4.9 (The Xtensa SDK only includes 4.8), so, you wont be able to really use that particular regex implementation.
You will need to find an alternate regex library, namely one that isn't dependent on any OS.
Upvotes: 2