Commit 6ea84a8e authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Return spelled default ctor in AlignedSysAllocator

Summary: [Folly] Return spelled default ctor in `AlignedSysAllocator` - it is necessary until gcc7.

Reviewed By: LeeHowes

Differential Revision: D19235864

fbshipit-source-id: fd0e9c33283e8b646aff56efb10d8e2a8c05e293
parent a40d6083
......@@ -477,6 +477,12 @@ class AlignedSysAllocator : private Align {
using Align::Align;
// TODO: remove this ctor, which is is no longer required as of under gcc7
template <
typename S = Align,
std::enable_if_t<std::is_default_constructible<S>::value, int> = 0>
constexpr AlignedSysAllocator() noexcept(noexcept(Align())) : Align() {}
template <typename U>
constexpr explicit AlignedSysAllocator(
AlignedSysAllocator<U, Align> const& other) noexcept
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment