diff options
Diffstat (limited to 'ext/pybind11/include/pybind11/stl.h')
-rw-r--r-- | ext/pybind11/include/pybind11/stl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pybind11/include/pybind11/stl.h b/ext/pybind11/include/pybind11/stl.h index d4b0fc914..7d6e8b102 100644 --- a/ext/pybind11/include/pybind11/stl.h +++ b/ext/pybind11/include/pybind11/stl.h @@ -246,7 +246,7 @@ template<typename T> struct optional_caster { PYBIND11_TYPE_CASTER(T, _("Optional[") + value_conv::name() + _("]")); }; -#if PYBIND11_HAS_OPTIONAL +#ifdef PYBIND11_HAS_OPTIONAL template<typename T> struct type_caster<std::optional<T>> : public optional_caster<std::optional<T>> {}; @@ -254,7 +254,7 @@ template<> struct type_caster<std::nullopt_t> : public void_caster<std::nullopt_t> {}; #endif -#if PYBIND11_HAS_EXP_OPTIONAL +#ifdef PYBIND11_HAS_EXP_OPTIONAL template<typename T> struct type_caster<std::experimental::optional<T>> : public optional_caster<std::experimental::optional<T>> {}; |