File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -289,15 +289,15 @@ template<typename T> struct optional_caster {
289
289
PYBIND11_TYPE_CASTER (T, _(" Optional[" ) + value_conv::name + _(" ]" ));
290
290
};
291
291
292
- #if PYBIND11_HAS_OPTIONAL
292
+ #if defined( PYBIND11_HAS_OPTIONAL)
293
293
template <typename T> struct type_caster <std::optional<T>>
294
294
: public optional_caster<std::optional<T>> {};
295
295
296
296
template <> struct type_caster <std::nullopt_t >
297
297
: public void_caster<std::nullopt_t > {};
298
298
#endif
299
299
300
- #if PYBIND11_HAS_EXP_OPTIONAL
300
+ #if defined( PYBIND11_HAS_EXP_OPTIONAL)
301
301
template <typename T> struct type_caster <std::experimental::optional<T>>
302
302
: public optional_caster<std::experimental::optional<T>> {};
303
303
@@ -369,7 +369,7 @@ struct variant_caster<V<Ts...>> {
369
369
PYBIND11_TYPE_CASTER (Type, _(" Union[" ) + detail::concat(make_caster<Ts>::name...) + _(" ]" ));
370
370
};
371
371
372
- #if PYBIND11_HAS_VARIANT
372
+ #if defined( PYBIND11_HAS_VARIANT)
373
373
template <typename ... Ts>
374
374
struct type_caster <std::variant<Ts...>> : variant_caster<std::variant<Ts...>> { };
375
375
#endif
You can’t perform that action at this time.
0 commit comments