Fixed Trac #11698 ("Missing return statement in static_storage_allocator")

This commit is contained in:
Ion Gaztañaga
2015-09-30 22:39:44 +02:00
parent 79274e4aae
commit f8a4f01a86
2 changed files with 2 additions and 1 deletions

View File

@@ -48,7 +48,7 @@ class static_storage_allocator
{}
static_storage_allocator & operator=(const static_storage_allocator &) BOOST_NOEXCEPT_OR_NOTHROW
{}
{ return *this; }
T* internal_storage() const BOOST_NOEXCEPT_OR_NOTHROW
{ return const_cast<T*>(static_cast<const T*>(static_cast<const void*>(&storage))); }