Created
June 10, 2020 12:04
-
-
Save caiodanielnunessantos/da3c149e6671085862342541c6b1998e 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
#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