diff --git a/minidump/minidump_writable.cc b/minidump/minidump_writable.cc index 42a714f1..d2b58f5b 100644 --- a/minidump/minidump_writable.cc +++ b/minidump/minidump_writable.cc @@ -16,8 +16,6 @@ #include -#include - #include "base/logging.h" #include "util/file/file_writer.h" #include "util/numeric/safe_assignment.h" @@ -82,9 +80,6 @@ void MinidumpWritable::RegisterLocationDescriptor( registered_location_descriptors_.push_back(location_descriptor); } -constexpr size_t MinidumpWritable::kInvalidSize = - std::numeric_limits::max(); - MinidumpWritable::MinidumpWritable() : registered_rvas_(), registered_location_descriptors_(), diff --git a/minidump/minidump_writable.h b/minidump/minidump_writable.h index 98273751..3518e6a9 100644 --- a/minidump/minidump_writable.h +++ b/minidump/minidump_writable.h @@ -19,6 +19,7 @@ #include #include +#include #include #include "base/macros.h" @@ -134,7 +135,7 @@ class MinidumpWritable { //! \brief A size value used to signal failure by methods that return //! `size_t`. - static const size_t kInvalidSize; + static constexpr size_t kInvalidSize = std::numeric_limits::max(); MinidumpWritable();