| 103 | /// \param[in,out] m The Module to add the constructor to |
| 104 | template<typename T> |
| 105 | void construct_pod(const std::string &type, Module& m) |
| 106 | { |
| 107 | m.add(fun([](const Boxed_Number &bn){ return bn.get_as<T>(); }), type); |
| 108 | } |
| 109 | |
| 110 | |
| 111 | /// Internal function for converting from a string to a value |