fixed compile bugs for friend constructors

This commit is contained in:
Daniel Larimer 2013-08-19 01:46:28 -04:00
parent 9d79456cc5
commit 24768d2d26

View file

@ -213,6 +213,7 @@ namespace fc {
_valid = false;
}
private:
template<typename U> friend class optional;
T& ref() { return *ptr(); }
const T& ref()const { return *ptr(); }
T* ptr() { void* v = &_value[0]; return static_cast<T*>(v); }