Commit 1166fe0e authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Fix Build: propagate_const under GCC

Summary: [Folly] Fix Build: `propagate_const` under GCC.

Reviewed By: aary

Differential Revision: D6609722

fbshipit-source-id: 47d8b0f2d54e0e5834383ea64c93af30927c921d
parent 67300dac
......@@ -126,8 +126,10 @@ class propagate_const {
pointer_ = static_cast<OtherPointer&&>(other);
}
FOLLY_CPP14_CONSTEXPR void swap(propagate_const& other) noexcept(noexcept(
detail::propagate_const_adl::adl_swap(pointer_, other.pointer_))) {
FOLLY_CPP14_CONSTEXPR void swap(propagate_const& other) noexcept(
noexcept(detail::propagate_const_adl::adl_swap(
std::declval<Pointer&>(),
other.pointer_))) {
detail::propagate_const_adl::adl_swap(pointer_, other.pointer_);
}
......
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