From 24768d2d269e323713a79a366375c297968b8b15 Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Mon, 19 Aug 2013 01:46:28 -0400 Subject: [PATCH] fixed compile bugs for friend constructors --- include/fc/optional.hpp | 1 + 1 file changed, 1 insertion(+) 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); }