summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-01-16 21:21:20 +0100
committerDavid Robillard <d@drobilla.net>2018-01-16 21:25:35 +0100
commit34fb90e18a20cfc780cdef660e6da391baf1bcde (patch)
tree9191fc2257f4fa636e0d30b233ce176d33126cfd
parent9dfdf5d1d36f90aaa9a9d0d165d62b744dde837b (diff)
downloadingen-34fb90e18a20cfc780cdef660e6da391baf1bcde.tar.gz
ingen-34fb90e18a20cfc780cdef660e6da391baf1bcde.tar.bz2
ingen-34fb90e18a20cfc780cdef660e6da391baf1bcde.zip
Fix build with C++11
-rw-r--r--ingen/Interface.hpp2
-rw-r--r--src/server/CompiledGraph.cpp2
-rw-r--r--src/server/Task.cpp2
-rw-r--r--src/server/Task.hpp2
4 files changed, 5 insertions, 3 deletions
diff --git a/ingen/Interface.hpp b/ingen/Interface.hpp
index e22add9a..2221f8f0 100644
--- a/ingen/Interface.hpp
+++ b/ingen/Interface.hpp
@@ -47,6 +47,8 @@ class Atom;
class INGEN_API Interface
{
public:
+ using result_type = void;
+
Interface() : _seq(0) {}
virtual ~Interface() = default;
diff --git a/src/server/CompiledGraph.cpp b/src/server/CompiledGraph.cpp
index 6002afa1..e8eed012 100644
--- a/src/server/CompiledGraph.cpp
+++ b/src/server/CompiledGraph.cpp
@@ -53,7 +53,7 @@ has_provider_with_many_dependants(BlockImpl* n)
}
CompiledGraph::CompiledGraph(GraphImpl* graph)
- : _master(std::make_unique<Task>(Task::Mode::SEQUENTIAL))
+ : _master(std::unique_ptr<Task>(new Task(Task::Mode::SEQUENTIAL)))
{
compile_graph(graph);
}
diff --git a/src/server/Task.cpp b/src/server/Task.cpp
index dd09e060..d2cb2683 100644
--- a/src/server/Task.cpp
+++ b/src/server/Task.cpp
@@ -110,7 +110,7 @@ Task::simplify(std::unique_ptr<Task>&& task)
return std::move(task);
}
- std::unique_ptr<Task> ret = std::make_unique<Task>(task->mode());
+ std::unique_ptr<Task> ret = std::unique_ptr<Task>(new Task(task->mode()));
for (auto&& c : task->_children) {
auto child = simplify(std::move(c));
if (!child->empty()) {
diff --git a/src/server/Task.hpp b/src/server/Task.hpp
index 3bcfbb40..2cdad71b 100644
--- a/src/server/Task.hpp
+++ b/src/server/Task.hpp
@@ -85,7 +85,7 @@ public:
/** Prepend a child to this task. */
void push_front(Task&& task) {
- _children.emplace_front(std::make_unique<Task>(std::move(task)));
+ _children.emplace_front(std::unique_ptr<Task>(new Task(std::move(task))));
}
Mode mode() const { return _mode; }