Skip to content

Commit

Permalink
Ban copying of State.h
Browse files Browse the repository at this point in the history
  • Loading branch information
lkloh committed Jan 29, 2020
1 parent dee381e commit 3ab8b7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions c/include/libsbp/cpp/state.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ class State {
IReader *reader_;
IWriter *writer_;

State(const State&);

State& operator=(const State&);

static s32 read_func(u8 *buff, u32 n, void *ctx) {
State *instance = static_cast<State *>(ctx);
return instance->reader_->read(buff, n);
Expand Down

0 comments on commit 3ab8b7e

Please sign in to comment.