update swig on windows
This commit is contained in:
13
winx64/bin/swigwin-4.0.0/Examples/python/smartptr/smartptr.h
Normal file
13
winx64/bin/swigwin-4.0.0/Examples/python/smartptr/smartptr.h
Normal file
@@ -0,0 +1,13 @@
|
||||
template<class T> class SmartPtr {
|
||||
public:
|
||||
SmartPtr(T *realPtr = 0) { pointee = realPtr; }
|
||||
T *operator->() const {
|
||||
return pointee;
|
||||
}
|
||||
T &operator*() const {
|
||||
return *pointee;
|
||||
}
|
||||
private:
|
||||
T *pointee;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user