Commit 963a622d authored by Tom Niget's avatar Tom Niget

Add pybind caster for dict

parent f4170229
......@@ -6,6 +6,8 @@
#define TYPON_DICT_HPP
#include <unordered_map>
#include <pybind11/stl.h>
/*
template <typename K, typename V>
class PyDict : public std::unordered_map<K, V> {
......@@ -134,4 +136,10 @@ private:
}
namespace PYBIND11_NAMESPACE {
namespace detail {
template <typename K, typename V>
struct type_caster<typon::PyDict<K, V>> : map_caster<typon::PyDict<K, V>, K, V> {};
}}
#endif // TYPON_DICT_HPP
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment