🐛 changed from =default

This commit is contained in:
EntireTwix 2021-07-11 01:55:39 -07:00
parent f7dbd4c3e0
commit 94e6b3da44

View file

@ -1,5 +1,5 @@
#include "transaction.h"
Transaction::Transaction() noexcept = default;
Transaction::Transaction() noexcept {};
Transaction::Transaction(const std::string &from_str, const std::string &to_str, uint32_t amount, time_t time_val) noexcept : from(from_str), to(to_str), amount(amount), time(time_val) {}
Transaction::Transaction(const std::string &from_str, const std::string &to_str, uint32_t amount) noexcept : from(from_str), to(to_str), amount(amount) { time = std::time(NULL); }