summaryrefslogtreecommitdiff
path: root/libdbpp/unittests/testUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libdbpp/unittests/testUtils.cpp')
-rw-r--r--libdbpp/unittests/testUtils.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/libdbpp/unittests/testUtils.cpp b/libdbpp/unittests/testUtils.cpp
index 59ccf13..d05db3c 100644
--- a/libdbpp/unittests/testUtils.cpp
+++ b/libdbpp/unittests/testUtils.cpp
@@ -470,16 +470,8 @@ testExtractT(const DB::SelectCommandPtr & sel)
for (const auto & row : sel->as<T>()) {
testExtractT(row);
}
-#ifdef __clang__
- // Clang cannot compile this for reasons largely todo with ambiguousness in the spec
- // Fixed when we move to std::chrono
- if constexpr (!std::is_same<T, boost::posix_time::time_duration>::value) {
-#else
- if constexpr (true) {
-#endif
- for (const auto & row : sel->as<std::optional<T>>()) {
- testExtractT(row);
- }
+ for (const auto & row : sel->as<std::optional<T>>()) {
+ testExtractT(row);
}
}