summaryrefslogtreecommitdiff
path: root/person.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'person.hpp')
-rw-r--r--person.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/person.hpp b/person.hpp
index 9d1e7ea..29d0150 100644
--- a/person.hpp
+++ b/person.hpp
@@ -4,6 +4,9 @@
#include <vector>
struct Person {
+ Person() = default;
+ Person(const std::string &name): Name(name) {}
+ Person(const std::string &name, const std::string &addr): Name(name), Address(addr) {}
std::string Name;
std::string Address;
std::string GetAddress() const { return Address; }