\brief EXPERIMENTAL: Enable retrieving shared_ptr from a const context.
| 199 | // \brief EXPERIMENTAL: Enable retrieving shared_ptr<DataType> from a const |
| 200 | // context. |
| 201 | std::shared_ptr<DataType> GetSharedPtr() const { |
| 202 | return const_cast<DataType*>(this)->shared_from_this(); |
| 203 | } |
| 204 | |
| 205 | protected: |
| 206 | // Dummy version that returns a null string (indicating not implemented). |
nothing calls this directly
no outgoing calls
no test coverage detected