Skip to content

Instantly share code, notes, and snippets.

@deque-blog

deque-blog/TradeCopy.cpp

Last active Nov 13, 2017
Embed
What would you like to do?
class Flow {
public:
void setTrade(Trade* t);
// ...
};
class Trade {
public:
Trade(Trade const& other) : m_flows(other.m_flows)
{
for (auto& flow: m_flows)
flow.setTrade(this);
}
// ...
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment