Skip to content
Snippets Groups Projects
Commit cc4fcf8e authored by Oliver Sander's avatar Oliver Sander
Browse files

Remove method deallocate() which is not part of the standard.

A proper cast-to-bool is still missing.

[[Imported from SVN: r5734]]
parent f2cd0170
No related branches found
No related tags found
No related merge requests found
......@@ -95,12 +95,6 @@ namespace Dune
*/
inline void reset();
/**
* @brief Deallocates the references object if no other
* pointers reference it.
*/
inline void deallocate();
/** \brief The number of shared_ptrs pointing to the object we point to */
int use_count() const;
......@@ -197,13 +191,6 @@ namespace Dune
}
}
template<class T>
inline void shared_ptr<T>::deallocate()
{
assert(rep_!=0 && rep_->count_==1);
delete rep_;
rep_=0;
}
/** @} */
#endif // #ifdef SHARED_PTR_NAMESPACE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment