Remove constexpr for non compliant C++11 builds with ABSL_ASSERT

PiperOrigin-RevId: 495083659
pull/11285/head
Martijn Vels 2 years ago committed by Copybara-Service
parent e8449ee90e
commit a12d23bcfb
  1. 2
      src/google/protobuf/arena_align.h

@ -145,7 +145,7 @@ struct ArenaAlign {
constexpr size_t Ceil(size_t n) const { return (n + align - 1) & -align; }
constexpr size_t Floor(size_t n) const { return (n & ~(align - 1)); }
constexpr size_t Padded(size_t n) const {
size_t Padded(size_t n) const {
// TODO(mvels): there are direct callers of AllocateAligned() that violate
// `size` being a multiple of `align`: that should be an error / assert.
// ABSL_ASSERT(IsAligned(n));

Loading…
Cancel
Save