yo/concrete/poly2/spsembase/spsembase.h
raw| 1 | #ifndef INCLUDED_SPSEMBASE_ |
| 2 | #define INCLUDED_SPSEMBASE_ |
| 3 | |
| 4 | #include "../sembase/sembase.h" |
| 5 | |
| 6 | class spSemBase: public std::shared_ptr<SemBase> |
| 7 | { |
| 8 | public: |
| 9 | spSemBase() = default; |
| 10 | |
| 11 | template <typename Type> |
| 12 | spSemBase(Type *obj); |
| 13 | }; |
| 14 | |
| 15 | template <typename Type> |
| 16 | inline spSemBase::spSemBase(Type *obj) |
| 17 | : |
| 18 | std::shared_ptr<SemBase>(obj) |
| 19 | {} |
| 20 | |
| 21 | #endif |