Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active November 17, 2017 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/72262d7685b2d8a00c7550b8a572a76f to your computer and use it in GitHub Desktop.
Save deque-blog/72262d7685b2d8a00c7550b8a572a76f to your computer and use it in GitHub Desktop.
class Trade {
public:
void add(Flow const& flow)
{
Flow newFlow = flow;
newFlow.setTrade(this);
m_flows.push_back(std::move(newFlow));
}
private:
std::vector<Flow> m_flows;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment