fixed compile bugs for friend constructors
This commit is contained in:
parent
9d79456cc5
commit
24768d2d26
1 changed files with 1 additions and 0 deletions
|
|
@ -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); }
|
||||
|
|
|
|||
Loading…
Reference in a new issue