Sha256: 297b575f32b1db9f9ca5dba660541262fd7e6c4b8d7e43b0285b01f39b37f8c8
Contents?: true
Size: 664 Bytes
Versions: 2
Compression:
Stored size: 664 Bytes
Contents
#include "../Data_Object.hpp" template<typename T> Rice::Object Rice::detail::to_ruby_<T>:: convert(T const & x) { if(Data_Type<T>::is_bound()) { Data_Object<T> obj(&const_cast<T&>(x)); return obj; } else { std::string s("Unable to convert "); s += demangle(typeid(T *).name()); throw std::invalid_argument(s.c_str()); } } template<typename T> Rice::Object Rice::detail::to_ruby_<T *>:: convert(T * x) { if(Data_Type<T>::is_bound()) { Data_Object<T> obj(x); return obj; } else { std::string s("Unable to convert "); s += demangle(typeid(T *).name()); throw std::invalid_argument(s.c_str()); } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rice-1.3.2 | rice/detail/to_ruby.ipp |
rice-1.3.1 | rice/detail/to_ruby.ipp |