Skip to content

Instantly share code, notes, and snippets.

@mentix02
Created May 23, 2020 22:37
Show Gist options
  • Save mentix02/f91dbe161691c56d541860b822f42b37 to your computer and use it in GitHub Desktop.
Save mentix02/f91dbe161691c56d541860b822f42b37 to your computer and use it in GitHub Desktop.
class Person {
std::string name;
std::string family;
public:
Person(std::string n, std::string f) : name(n), family(f) {};
};
void AssertSameFamily(const Person& p1, const Person& p2)
{
Assert(p1.family, p2.family, p1.name + " and " + p2.name + " are not related.");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment