6 #ifndef IROHA_SOCI_STD_OPTIONAL_HPP 7 #define IROHA_SOCI_STD_OPTIONAL_HPP 9 #include <soci/type-conversion-traits.h> 17 struct type_conversion<
std::optional<T>> {
18 typedef typename type_conversion<T>::base_type
base_type;
22 std::optional<T> &out) {
27 type_conversion<T>::from_base(in, ind, tmp);
32 static void to_base(std::optional<T>
const &in,
36 type_conversion<T>::to_base(in.value(), out, ind);
44 struct type_conversion<
std::nullopt_t> {
51 static void to_base(std::nullopt_t
const & ,
60 #endif // IROHA_SOCI_STD_OPTIONAL_HPP type_conversion< T >::base_type base_type
Definition: soci_std_optional.hpp:18
int base_type
Definition: soci_std_optional.hpp:45
static void from_base(base_type const &, indicator, std::nullopt_t &)
Definition: soci_std_optional.hpp:47
static void to_base(std::optional< T > const &in, base_type &out, indicator &ind)
Definition: soci_std_optional.hpp:32
static void to_base(std::nullopt_t const &, base_type &, indicator &ind)
Definition: soci_std_optional.hpp:51
static void from_base(base_type const &in, indicator ind, std::optional< T > &out)
Definition: soci_std_optional.hpp:20
Definition: pool_wrapper.hpp:11