Deprecate Arena::CreateMessage for OSS.

PiperOrigin-RevId: 612534673
pull/16023/head
Protobuf Team Bot 9 months ago committed by Copybara-Service
parent 73d96dba54
commit d4bfe52d99
  1. 5
      src/google/protobuf/arena.h

@ -176,9 +176,8 @@ class PROTOBUF_EXPORT PROTOBUF_ALIGNAS(8) Arena final {
// Deprecated. Use Create<T> instead. TODO: depreate OSS version
// once internal migration to Arena::Create is done.
template <typename T, typename... Args>
PROTOBUF_ALWAYS_INLINE
static T*
CreateMessage(Arena* arena, Args&&... args) {
ABSL_DEPRECATED("Use Create")
static T* CreateMessage(Arena* arena, Args&&... args) {
using Type = std::remove_const_t<T>;
static_assert(
is_arena_constructable<Type>::value,

Loading…
Cancel
Save