Skip to content

Commit dd4dada

Browse files
Trying to figure some things out
1 parent 64e69f1 commit dd4dada

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

examples/warehouse/types.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44
enum class category { order, cash_carry };
55

66
struct Product {
7-
Product() :
8-
id(),
9-
price(),
10-
name(),
11-
cat(order) {}
12-
137
std::string id;
148
double price;
159
std::string name;

examples/warehouse/warehouseapp.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
class WarehouseServer {
77
public:
8+
WarehouseServer() :
9+
products() {}
10+
811
bool AddProduct(const Product &p);
912
const Product& GetProduct(const std::string& id);
1013

0 commit comments

Comments
 (0)