Skip to content

Instantly share code, notes, and snippets.

@caiodanielnunessantos
Created June 10, 2020 12:04
Show Gist options
  • Save caiodanielnunessantos/da3c149e6671085862342541c6b1998e to your computer and use it in GitHub Desktop.
Save caiodanielnunessantos/da3c149e6671085862342541c6b1998e to your computer and use it in GitHub Desktop.
#include <vector>
class A;
class B;
class A {
std::vector <B*> bs;
void MethodOfA();
};
class B {
static void MethodOfB(B*&);
};
A::MethodOfA() {
for (auto a: bs) {
B::MethodOfB(a);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment