summaryrefslogtreecommitdiff
path: root/lib/output
diff options
context:
space:
mode:
Diffstat (limited to 'lib/output')
-rw-r--r--lib/output/pq/pqBindings.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/output/pq/pqBindings.h b/lib/output/pq/pqBindings.h
index 2a4ac8c..329a2cf 100644
--- a/lib/output/pq/pqBindings.h
+++ b/lib/output/pq/pqBindings.h
@@ -2,6 +2,7 @@
#define MYGRATE_OUTPUT_PQ_PQBINDINGS
#include <compileTimeFormatter.h>
+#include <concepts>
#include <dbTypes.h>
#include <helpers.h>
#include <initializer_list>
@@ -21,23 +22,20 @@ namespace MyGrate::Output::Pq {
v.visit(*this);
}
}
- template<Stringable T>
void
- operator()(const T & v)
+ operator()(const Stringable auto & v)
{
addBuf(std::to_string(v));
}
- template<Viewable T>
void
- operator()(const T & v)
+ operator()(const Viewable auto & v)
{
values.emplace_back(v.data());
lengths.emplace_back(v.size());
formats.push_back(1);
}
- template<typename T>
void
- operator()(const T & v)
+ operator()(const auto & v)
{
addBuf(scprintf<"%?">(v));
}