| 1 |
diff --git a/dolfin/io/HDF5File.cpp b/dolfin/io/HDF5File.cpp |
| 2 |
index fa14042cf..c696f5b74 100644 |
| 3 |
--- a/dolfin/io/HDF5File.cpp |
| 4 |
+++ b/dolfin/io/HDF5File.cpp |
| 5 |
@@ -21,6 +21,7 @@ |
| 6 |
|
| 7 |
#include <cstdio> |
| 8 |
#include <fstream> |
| 9 |
+#include <functional> |
| 10 |
#include <iomanip> |
| 11 |
#include <iostream> |
| 12 |
#include <string> |
| 13 |
@@ -916,7 +917,7 @@ void HDF5File::write(const Function& u, const std::string name) |
| 14 |
std::transform(x_cell_dofs.begin(), |
| 15 |
x_cell_dofs.end(), |
| 16 |
x_cell_dofs.begin(), |
| 17 |
- std::bind2nd(std::plus<std::size_t>(), offset)); |
| 18 |
+ std::bind(std::plus<std::size_t>(), std::placeholders::_1, offset)); |
| 19 |
|
| 20 |
const bool mpi_io = _mpi_comm.size() > 1 ? true : false; |
| 21 |
|
| 22 |
diff --git a/dolfin/io/XDMFFile.cpp b/dolfin/io/XDMFFile.cpp |
| 23 |
index fd5b0a202..314c9644a 100644 |
| 24 |
--- a/dolfin/io/XDMFFile.cpp |
| 25 |
+++ b/dolfin/io/XDMFFile.cpp |
| 26 |
@@ -1265,7 +1265,7 @@ void XDMFFile::add_function(MPI_Comm mpi_comm, pugi::xml_node& xml_node, |
| 27 |
std::transform(x_cell_dofs.begin(), |
| 28 |
x_cell_dofs.end(), |
| 29 |
x_cell_dofs.begin(), |
| 30 |
- std::bind2nd(std::plus<std::size_t>(), offset)); |
| 31 |
+ std::bind(std::plus<std::size_t>(), std::placeholders::_1, offset)); |
| 32 |
|
| 33 |
const std::int64_t num_cell_dofs_global |
| 34 |
= MPI::sum(mpi_comm, cell_dofs.size()); |