diff options
author | Oskar <[email protected]> | 2024-10-01 19:52:51 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-10-01 19:52:51 +0200 |
commit | 18236447ae6c08ff336fd22d191343a1ff9dfede (patch) | |
tree | 7239de22a78e3ba423af0f1cfe7498f903e8bae3 /person.hpp | |
parent | e0ffab6b379851aa573d7009fcf50e1be892f734 (diff) |
more
Diffstat (limited to 'person.hpp')
-rw-r--r-- | person.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2,10 +2,11 @@ #define PERSON_H #include <string> #include <vector> +#include <iostream> struct Person { Person() = default; - Person(const std::string &name): Name(name) {} + explicit 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; |