Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #980 from EOSIO/disable_copy
Browse files Browse the repository at this point in the history
disable copy constructor and copy assignment
  • Loading branch information
larryk85 authored Nov 12, 2020
2 parents f2534a0 + f681bc7 commit 329780f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/eosiolib/contracts/eosio/key_value.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,11 @@ class table : internal::table_base {
template<typename K>
class index;

table(const table&) = delete; // disable copy constructor
table(table&&) = delete; // disable move constructor
table& operator=(const table&) = delete; // disable assignment copy operator
table& operator=(table&&) = delete; // disable assignment move operator

private:
using index_base = internal::index_base;

Expand Down

0 comments on commit 329780f

Please sign in to comment.