[PATCH] D24372: [libcxx] Sprinkle constexpr over compressed_pair

Keno Fischer via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 27 14:31:54 PDT 2016


loladiro added a comment.

Before I commit this, I just realized

  __libcpp_compressed_pair_imp& operator=(const __libcpp_compressed_pair_imp& __p)
      _NOEXCEPT_(is_nothrow_copy_assignable<_T1>::value &&
                 is_nothrow_copy_assignable<_T2>::value)
      {
          _T1::operator=(__p.first());
          __second_ = __p.second();
          return *this;
      }

is only constexpr in C++14, right?


Repository:
  rL LLVM

https://reviews.llvm.org/D24372





More information about the cfe-commits mailing list