Skip to content

Commit 595de7a

Browse files
committed
Typedef the original C++ class in wrapper_srreal.
Provide easy access to the initial C++ type being wrapped.
1 parent 42b2096 commit 595de7a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

srrealmodule/srreal_converters.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,12 @@ void throwPureVirtualCalled(const char* fncname);
396396
template <class T>
397397
class wrapper_srreal : public ::boost::python::wrapper<T>
398398
{
399+
public:
400+
401+
typedef T base;
402+
399403
protected:
404+
400405
::boost::python::override
401406
get_pure_virtual_override(const char* name) const
402407
{

0 commit comments

Comments
 (0)