InlinedArena needs copy constructor and copy assignment operator deleted

Deletes the default copy constructor and assignment operator.

PiperOrigin-RevId: 597041019
pull/15357/head
Protobuf Team Bot 1 year ago committed by Copybara-Service
parent 373192ceff
commit c5083a855a
  1. 8
      upb/mem/arena.hpp

@ -30,8 +30,8 @@ class Arena {
std::unique_ptr<upb_Arena, decltype(&upb_Arena_Free)> ptr_;
};
// InlinedArena seeds the arenas with a predefined amount of memory. No
// heap memory will be allocated until the initial block is exceeded.
// InlinedArena seeds the arenas with a predefined amount of memory. No heap
// memory will be allocated until the initial block is exceeded.
template <int N>
class InlinedArena : public Arena {
public:
@ -43,8 +43,8 @@ class InlinedArena : public Arena {
}
private:
InlinedArena(const InlinedArena*) = delete;
InlinedArena& operator=(const InlinedArena*) = delete;
InlinedArena(const InlinedArena&) = delete;
InlinedArena& operator=(const InlinedArena&) = delete;
char initial_block_[N];
};

Loading…
Cancel
Save