We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 776bc0a commit f4c9052Copy full SHA for f4c9052
tests/statement_serializer_tests/bindables.cpp
@@ -45,6 +45,18 @@ constexpr auto get_default<internal::literal_holder<const wchar_t*>>() -> intern
45
return {L""};
46
}
47
48
+#ifdef SQLITE_ORM_OPTIONAL_SUPPORTED
49
+template<>
50
+constexpr auto get_default<std::nullopt_t>() -> std::nullopt_t {
51
+ return std::nullopt;
52
+}
53
+
54
55
+constexpr auto get_default<internal::literal_holder<std::nullopt_t>>() -> internal::literal_holder<std::nullopt_t> {
56
+ return {std::nullopt};
57
58
+#endif
59
60
template<class Tpl, size_t... Idx>
61
constexpr Tpl make_default_tuple(index_sequence<Idx...>) {
62
return {get_default<tuple_element_t<Idx, Tpl>>()...};
0 commit comments