insert_query_builder progress
This commit is contained in:
@@ -18,8 +18,7 @@ template < typename ValueType, typename ErrorType >
|
||||
struct is_result<result<ValueType, ErrorType>> : std::true_type {};
|
||||
|
||||
template < typename ValueType >
|
||||
class ok
|
||||
{
|
||||
class ok {
|
||||
public:
|
||||
using value_type = ValueType;
|
||||
explicit constexpr ok(const ValueType &value) : value_(value) {}
|
||||
@@ -34,16 +33,14 @@ private:
|
||||
};
|
||||
|
||||
template <>
|
||||
class ok<void>
|
||||
{
|
||||
class ok<void> {
|
||||
public:
|
||||
using value_type = void;
|
||||
explicit constexpr ok() = default;
|
||||
};
|
||||
|
||||
template < typename ErrorType >
|
||||
class failure
|
||||
{
|
||||
class failure {
|
||||
public:
|
||||
using value_type = ErrorType;
|
||||
|
||||
@@ -59,8 +56,7 @@ private:
|
||||
};
|
||||
|
||||
template < typename ValueType, typename ErrorType >
|
||||
class result
|
||||
{
|
||||
class result {
|
||||
public:
|
||||
using value_type = ValueType;
|
||||
using error_type = ErrorType;
|
||||
|
||||
Reference in New Issue
Block a user