Skip to content

Commit

Permalink
disable copy constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
Kautenja committed Feb 20, 2020
1 parent 30d33f3 commit 046d1cd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/structures.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ struct Order : DLL::Node {
arrival(arrival_),
execution(execution_),
limit(nullptr) { }

private:
/// disable the copy constructor
Order(const Order& other) { }
};

/// A representation of a price limit with a FIFO queue of orders.
Expand Down Expand Up @@ -125,6 +129,10 @@ struct Limit : BST::Node<Price> {
volume(order->size),
order_head(order),
order_tail(order) { }

private:
/// disable the copy constructor
Limit(const Limit& other) { }
};

} // namespace LOB
Expand Down

0 comments on commit 046d1cd

Please sign in to comment.