/// Copyright (c) 2023 CNRS INRIA /// Definitions for exposing boost::optional types. /// Also works with std::optional. #ifndef __eigenpy_optional_hpp__ #define __eigenpy_optional_hpp__ #include "eigenpy/fwd.hpp" #include "eigenpy/eigen-from-python.hpp" #include #ifdef EIGENPY_WITH_CXX17_SUPPORT #include #endif #ifndef EIGENPY_DEFAULT_OPTIONAL #define EIGENPY_DEFAULT_OPTIONAL boost::optional #endif namespace boost { namespace python { namespace converter { template struct expected_pytype_for_arg > : expected_pytype_for_arg {}; #ifdef EIGENPY_WITH_CXX17_SUPPORT template struct expected_pytype_for_arg > : expected_pytype_for_arg { }; #endif } // namespace converter } // namespace python } // namespace boost namespace eigenpy { namespace detail { /// Helper struct to decide which type is the "none" type for a specific /// optional implementation. template