You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to figure out how to use the experimental::optional since I am stuck with C++14 for the time being and boost isn't an option. In the details/common.h header:
// std::experimental::optional (but not allowed in c++11 mode)
# if defined(PYBIND11_CPP14) && (__has_include(<experimental/optional>) && \
!__has_include(<optional>))
# define PYBIND11_HAS_EXP_OPTIONAL 1
# endif
but, is available with gcc9:
└[/usr/include/c++/9]> ls /usr/include/c++/9/optional
/usr/include/c++/9/optional
So it isn't enabled. Is there a way to enable it that I am unaware of?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to figure out how to use the experimental::optional since I am stuck with C++14 for the time being and boost isn't an option. In the details/common.h header:
but, is available with gcc9:
So it isn't enabled. Is there a way to enable it that I am unaware of?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions