Commit 344b55fd authored by Jason Rhinelander's avatar Jason Rhinelander

Dedent class body

parent 83b09164
......@@ -22,7 +22,7 @@ namespace eris {
*/
template<class T>
class SharedMember final {
public:
public:
/** Default constructor; creates a SharedMember around a null shared_ptr that refers to no
* object.
*/
......@@ -142,7 +142,7 @@ class SharedMember final {
/// Default move assignment
SharedMember<T>& operator=(SharedMember<T> &&) = default;
private:
private:
std::shared_ptr<T> ptr_;
template <typename O> friend class SharedMember;
......@@ -154,7 +154,7 @@ namespace std {
/// std::hash implementation for a SharedMember<T>. Returns the hash for the underlying shared_ptr.
template <class T>
struct hash<eris::SharedMember<T>> {
public:
public:
/// Returns the hash for the SharedMember's underlying ptr
size_t operator()(const eris::SharedMember<T> &m) const { return std::hash<std::shared_ptr<T>>()(m.ptr()); }
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment