Skip to content

Commit

Permalink
Move overload_base_get_item_for_std_map<> using-typedef back to std-m…
Browse files Browse the repository at this point in the history
…ap.hpp
  • Loading branch information
ManifoldFR authored and jcarpent committed Sep 26, 2024
1 parent aa2c54b commit e03f6b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
10 changes: 0 additions & 10 deletions include/eigenpy/map.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "eigenpy/pickle-vector.hpp"
#include "eigenpy/registration.hpp"
#include "eigenpy/utils/empty-visitor.hpp"
#include "eigenpy/deprecated.hpp"

#include <boost/python/suite/indexing/map_indexing_suite.hpp>
#include <boost/python/stl_iterator.hpp>
Expand Down Expand Up @@ -66,15 +65,6 @@ struct overload_base_get_item_for_map
}
};

namespace details {

template <typename Container>
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<Container>;

} // 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
Expand Down
9 changes: 9 additions & 0 deletions include/eigenpy/std-map.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@

namespace eigenpy {

template <typename Container>
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<Container>;

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.
*
Expand Down

0 comments on commit e03f6b2

Please sign in to comment.