forked from boostorg/optional
Fix some -Wmaybe-uninitialized warnings
This commit is contained in:
1 parent
c60db27762
commit
e31cf6f2a8
7 files changed
+221
-58
No files matched your search
@@ -60,9 +60,9 @@ class aligned_storage
|
||||
T * ptr_ref() { return static_cast<T *> (address()); }
|
||||
#endif
|
||||
|
||||
T const& ref() const { return *ptr_ref(); }
|
||||
T & ref() { return *ptr_ref(); }
|
||||
|
||||
T const& ref() const { return *boost::core::launder(ptr_ref()); }
|
||||
T & ref() { return *boost::core::launder(ptr_ref()); }
|
||||
|
||||
} ;
|
||||
|
||||
} // namespace optional_detail
|
||||
|
||||
Reference in new issue
Block a user