summaryrefslogtreecommitdiff
path: root/src/database/column.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/database/column.hpp')
-rw-r--r--src/database/column.hpp6
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_";