Skip to content

Commit

Permalink
Correct memoized implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
eschnett committed Jun 10, 2018
1 parent 7b43fd2 commit cb2cd40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asdf_memoized.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ template <typename T> class memoized {
const T &operator*() const { return *get(); }
T &operator*() { return *get(); }
const T *operator->() const { return get().get(); }
T *operator->() { return get(); }
T *operator->() { return get().get(); }
};

// // Modelled after std::make_shared
Expand Down

0 comments on commit cb2cd40

Please sign in to comment.