From e03f6b289f18cb3d0084363ec94be5a6646cbfdb Mon Sep 17 00:00:00 2001 From: ManifoldFR Date: Wed, 25 Sep 2024 17:45:06 +0200 Subject: [PATCH] Move overload_base_get_item_for_std_map<> using-typedef back to std-map.hpp --- include/eigenpy/map.hpp | 10 ---------- include/eigenpy/std-map.hpp | 9 +++++++++ 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/include/eigenpy/map.hpp b/include/eigenpy/map.hpp index 743fe93f..b22bc8b2 100644 --- a/include/eigenpy/map.hpp +++ b/include/eigenpy/map.hpp @@ -9,7 +9,6 @@ #include "eigenpy/pickle-vector.hpp" #include "eigenpy/registration.hpp" #include "eigenpy/utils/empty-visitor.hpp" -#include "eigenpy/deprecated.hpp" #include #include @@ -66,15 +65,6 @@ struct overload_base_get_item_for_map } }; -namespace details { - -template -using overload_base_get_item_for_std_map EIGENPY_DEPRECATED_MESSAGE( - "Use overload_base_get_item_for_map<> instead.") = - overload_base_get_item_for_map; - -} // namespace details - /////////////////////////////////////////////////////////////////////////////// // The following snippet of code has been taken from the header // https://github.com/loco-3d/crocoddyl/blob/v2.1.0/bindings/python/crocoddyl/utils/map-converter.hpp diff --git a/include/eigenpy/std-map.hpp b/include/eigenpy/std-map.hpp index a4efd439..a6aca840 100644 --- a/include/eigenpy/std-map.hpp +++ b/include/eigenpy/std-map.hpp @@ -10,6 +10,15 @@ namespace eigenpy { +template +using overload_base_get_item_for_std_map EIGENPY_DEPRECATED_MESSAGE( + "Use overload_base_get_item_for_map<> instead.") = + overload_base_get_item_for_map; + +namespace details { +using ::eigenpy::overload_base_get_item_for_std_map; +} // namespace details + /** * @brief Expose an std::map from a type given as template argument. *