Last active
November 17, 2017 14:29
-
-
Save deque-blog/72262d7685b2d8a00c7550b8a572a76f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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