| 637 | template<typename T> |
| 638 | struct DFHACK_EXPORT identity_traits<std::shared_ptr<T>> { |
| 639 | static opaque_identity *get() { |
| 640 | using type = std::shared_ptr<T>; |
| 641 | static std::string name = std::string("shared_ptr<") + typeid(T).name() + ">"; |
| 642 | static opaque_identity identity(sizeof(type), allocator_fn<type>, name); |
| 643 | return &identity; |
| 644 | } |
| 645 | }; |
| 646 | #endif |
| 647 |