From 33356e2d90cb17f688f132243aa0f8dd84c6fa57 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 27 Aug 2021 20:53:21 +0100 Subject: Add lots of tests over replicating most of the types --- lib/dbTypes.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/dbTypes.h') diff --git a/lib/dbTypes.h b/lib/dbTypes.h index a9ed029..8cac3ca 100644 --- a/lib/dbTypes.h +++ b/lib/dbTypes.h @@ -164,14 +164,11 @@ namespace MyGrate { else if constexpr (std::is_floating_point_v) { return visit(detail::SafeExtract {}); } - else if constexpr (std::is_same_v) { - return get(); - } else if constexpr (std::is_same_v) { return visit(detail::ToString {}); } else { - static_assert(detail::is_false::value, "Cannot extract one of these"); + return get(); } } }; -- cgit v1.2.3