Skip to content

Commit

Permalink
Deprecate Arena::CreateMessage for OSS.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 612534673
  • Loading branch information
protobuf-github-bot authored and Copybara-Service committed Mar 4, 2024
1 parent 73d96db commit d4bfe52
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/google/protobuf/arena.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d4bfe52

Please sign in to comment.