Open Talkless opened 3 days ago
Like the: Well, it's kinda just experiment "for fun", it's nice to use some latest C++ features on "bare metal" :)
To me, the implementation of assert()
seems to collide with constexpr
.
Perhaps you can try and see what compiling without assertions (defining NDEBUG
) results in [1] ?
I do appreciate the steps to reproduce you provide, however it may be a bit much to perform these myself at the moment.
Perhaps you can try and see what compiling without assertions (defining NDEBUG) results in [1] ?
I've did this:
#define NDEBUG
#include "src/3rdparty/expected.hpp"
And it builds!
Thanks!
I tried including
expected.hpp
(latest 0.8.0) like this:define nsel_CPLUSPLUS 199711L
define nsel_CONFIG_NO_EXCEPTIONS 1
include "3rdparty/nonstd/expected.hpp"
but get built errors:
Any ideas how to workaround that? Well, it's kinda just experiment "for fun", it's nice to use some latest C++ features on "bare metal", but I guess some compiler features are missing?
I can use
costepxr
,[[nodiscard]]
, but I guess some other feature missing?P.S. to reproduce:
http://arduino.esp8266.com/stable/package_esp8266com_index.json
inPreferences -> Additional boards manager URLs
.esp32 by Espressif Systems
inTools -> Board -> Boards Manager...
.LOLIN(WeMos) D1 R1
inTools -> Board -> esp8266
expected.hpp
in same folder where Arduino Sketch (.ino) is and#include
it.