diff --git a/include/fc/optional.hpp b/include/fc/optional.hpp index d0acd00..cdf5e06 100644 --- a/include/fc/optional.hpp +++ b/include/fc/optional.hpp @@ -213,6 +213,7 @@ namespace fc { _valid = false; } private: + template friend class optional; T& ref() { return *ptr(); } const T& ref()const { return *ptr(); } T* ptr() { void* v = &_value[0]; return static_cast(v); }