We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suppose I have the following class:
struct Foo{ virtual void before(); virtual void do(); virtual void after(); };
With the sequence approach I can make sure, those functions are called in order when having a single instance.
But what do I do when I have multiple instances? Example:
Foo* f1 = new Foo; Foo* f2 = new Foo; container.add(f1, f2); // Expect (f1.before && f2.before) + (f1.do && f2.do) + (f1.after && f2.after) container.process();
How can I ensure, that both before are called first, then both do etc while the order of the calls to the same function do not matter?
before
do
The text was updated successfully, but these errors were encountered:
You probably need to use several sequences for that, which I admit is a little cumbersome…
Something like:
etc…
Sorry, something went wrong.
No branches or pull requests
Suppose I have the following class:
With the sequence approach I can make sure, those functions are called in order when having a single instance.
But what do I do when I have multiple instances? Example:
How can I ensure, that both
before
are called first, then bothdo
etc while the order of the calls to the same function do not matter?The text was updated successfully, but these errors were encountered: