summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-12-06 23:14:41 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-12-06 23:24:22 +0000
commitded4e770fc673fefa0b1d6c2c03eb5cc6cb4db8a (patch)
treefe2b942e87c7be4a02c45bb5305a1a76298ed5e8
parentAssorted improvements to he SQL lexer to better handle whitespace and comment... (diff)
downloadlibdbpp-ded4e770fc673fefa0b1d6c2c03eb5cc6cb4db8a.tar.bz2
libdbpp-ded4e770fc673fefa0b1d6c2c03eb5cc6cb4db8a.tar.xz
libdbpp-ded4e770fc673fefa0b1d6c2c03eb5cc6cb4db8a.zip
Use std::enable_if now, not boost's
-rw-r--r--libdbpp/selectcommandUtil.impl.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/libdbpp/selectcommandUtil.impl.h b/libdbpp/selectcommandUtil.impl.h
index 4c0e035..dfe6894 100644
--- a/libdbpp/selectcommandUtil.impl.h
+++ b/libdbpp/selectcommandUtil.impl.h
@@ -2,20 +2,19 @@
#define DB_SELECTCOMMANDUTIL_IMPL_H
#include "selectcommand.h"
-#include <boost/function.hpp>
-#include <boost/utility/enable_if.hpp>
+#include <type_traits>
/// @cond
namespace DB {
template<typename Fields, typename Func, unsigned int field, typename ... Fn>
- inline typename boost::disable_if_c<field < std::tuple_size<Fields>::value>::type
+ inline typename std::enable_if<field >= std::tuple_size<Fields>::value>::type
forEachField(DB::SelectCommand *, const Func & func, const Fn & ... args)
{
func(args...);
}
template<typename Fields, typename Func, unsigned int field, typename ... Fn, typename ... Args>
- inline typename boost::enable_if_c<field < std::tuple_size<Fields>::value>::type
+ inline typename std::enable_if<field < std::tuple_size<Fields>::value>::type
forEachField(DB::SelectCommand * sel, const Func & func, const Args & ... args)
{
typename std::tuple_element<field, Fields>::type a;