boostorg / container

STL-like containers from Boost
http://www.boost.org/libs/container/
Boost Software License 1.0
103 stars 113 forks source link

Avoid -Wunreachable-code in do_allocate() #41

Closed mknejp closed 7 years ago

mknejp commented 7 years ago

do_allocate() triggered the warning "code will never be executed [-Wunreachable-code]" in Clang.

Changed both do_allocate and do_deallocate to keep the existing similarity.

igaztanaga commented 7 years ago

Thanks for the report.