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 14, 2020
1 parent 1e9409e commit e0a0987
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 e0a0987

Please sign in to comment.