@@ -10,13 +10,25 @@ struct MarvelHero {
1010 std::string name;
1111 std::string abilities;
1212 short points = 0 ;
13+
14+ #ifndef SQLITE_ORM_AGGREGATE_NSDMI_SUPPORTED
15+ MarvelHero () {}
16+ MarvelHero (int id, std::string name, std::string abilities, short points) :
17+ id{id}, name{move (name)}, abilities{move (abilities)}, points{points} {}
18+ #endif
1319};
1420
1521struct Contact {
1622 int id = 0 ;
1723 std::string firstName;
1824 std::string lastName;
1925 std::string phone;
26+
27+ #ifndef SQLITE_ORM_AGGREGATE_NSDMI_SUPPORTED
28+ Contact () {}
29+ Contact (int id, std::string firstName, std::string lastName, std::string phone) :
30+ id{id}, firstName{move (firstName)}, lastName{move (lastName)}, phone{move (phone)} {}
31+ #endif
2032};
2133
2234struct Customer {
@@ -33,6 +45,27 @@ struct Customer {
3345 std::unique_ptr<std::string> fax;
3446 std::string email;
3547 int supportRepId = 0 ;
48+
49+ #ifndef SQLITE_ORM_AGGREGATE_NSDMI_SUPPORTED
50+ Customer () {}
51+ Customer (int id,
52+ std::string firstName,
53+ std::string lastName,
54+ std::string company,
55+ std::string address,
56+ std::string city,
57+ std::string state,
58+ std::string country,
59+ std::string postalCode,
60+ std::string phone,
61+ std::unique_ptr<std::string> fax,
62+ std::string email,
63+ int supportRepId) :
64+ id{id},
65+ firstName{move (firstName)}, lastName{move (lastName)}, company{move (company)}, address{move (address)},
66+ city{move (city)}, state{move (state)}, country{move (country)}, postalCode{move (postalCode)}, phone{move (phone)},
67+ fax{move (fax)}, email{move (email)}, supportRepId{supportRepId} {}
68+ #endif
3669};
3770
3871int main (int , char ** argv) {
0 commit comments