diff options
Diffstat (limited to 'src/database/column.hpp')
-rw-r--r-- | src/database/column.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/database/column.hpp b/src/database/column.hpp index e74d426..22f4254 100644 --- a/src/database/column.hpp +++ b/src/database/column.hpp @@ -5,8 +5,12 @@ template <typename T> struct Column { + Column(T default_value): + value{default_value} {} + Column(): + value{} {} using real_type = T; - T value; + T value{}; }; struct Id: Column<std::size_t> { static constexpr auto name = "id_"; |