summaryrefslogtreecommitdiff
path: root/slicer/db/sqlUpdateSerializer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'slicer/db/sqlUpdateSerializer.cpp')
-rw-r--r--slicer/db/sqlUpdateSerializer.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/slicer/db/sqlUpdateSerializer.cpp b/slicer/db/sqlUpdateSerializer.cpp
index c322ef1..7629573 100644
--- a/slicer/db/sqlUpdateSerializer.cpp
+++ b/slicer/db/sqlUpdateSerializer.cpp
@@ -6,9 +6,11 @@
#include <buffer.h>
#include <modifycommand.h>
#include <slicer/metadata.h>
-#include <boost/bind.hpp>
+#include <functional>
namespace Slicer {
+ using namespace std::placeholders;
+
SqlUpdateSerializer::SqlUpdateSerializer(DB::Connection * const c, const std::string & t) :
connection(c),
tableName(t)
@@ -20,10 +22,10 @@ namespace Slicer {
{
switch (mp->GetType()) {
case Slicer::mpt_Sequence:
- mp->OnEachChild(boost::bind(&SqlUpdateSerializer::SerializeSequence, this, _2));
+ mp->OnEachChild(std::bind(&SqlUpdateSerializer::SerializeSequence, this, _2));
return;
case Slicer::mpt_Complex:
- mp->OnEachChild(boost::bind(&SqlUpdateSerializer::SerializeObject, this, _2));
+ mp->OnEachChild(std::bind(&SqlUpdateSerializer::SerializeObject, this, _2));
return;
default:
throw UnsupportedModelType();