summaryrefslogtreecommitdiff
path: root/libdbpp/selectcommand.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-04-09 11:48:47 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2018-04-09 11:48:47 +0100
commit142c4ee136448d51db58fa5904c3f0f51679758e (patch)
treefa80a44fefdba9b21af83ae29c0d1c476b6d5f8c /libdbpp/selectcommand.h
parentSimplify by replacing enable_if with if constexpr (diff)
downloadlibdbpp-142c4ee136448d51db58fa5904c3f0f51679758e.tar.bz2
libdbpp-142c4ee136448d51db58fa5904c3f0f51679758e.tar.xz
libdbpp-142c4ee136448d51db58fa5904c3f0f51679758e.zip
C++17
Replaces lots of things with new C++17 variants of them. Updates much code to be compatible with C++17 version libadhocutil. Note that this includes changes to how mock databases are instantiated.
Diffstat (limited to 'libdbpp/selectcommand.h')
-rw-r--r--libdbpp/selectcommand.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/libdbpp/selectcommand.h b/libdbpp/selectcommand.h
index 32b5cbe..0d2a4ca 100644
--- a/libdbpp/selectcommand.h
+++ b/libdbpp/selectcommand.h
@@ -9,8 +9,7 @@
#include <boost/multi_index/ordered_index_fwd.hpp>
#include <boost/multi_index/member.hpp>
#include <boost/multi_index/mem_fun.hpp>
-#include <boost/function/function_fwd.hpp>
-#include <boost/shared_ptr.hpp>
+#include <functional>
#include <visibility.h>
#include <exception.h>
@@ -117,7 +116,7 @@ namespace DB {
/// Get the index of a column by name.
unsigned int getOrdinal(const Glib::ustring &) const;
/// Push each row through a function accepting one value per column
- template<typename ... Fn, typename Func = boost::function<void(Fn...)>>
+ template<typename ... Fn, typename Func = std::function<void(Fn...)>>
void forEachRow(const Func & func);
/// Support for a C++ row range for
template<typename ... Fn>