Commit 7018a1c8 authored by Martin Heistermann's avatar Martin Heistermann

pre-c++14 fix

parent c76bdb54
......@@ -51,6 +51,7 @@
#include <QString>
#include "SmartPointer.hh"
#include "../Config/ACGDefines.hh"
namespace ACG {
......@@ -167,7 +168,7 @@ std::unique_ptr<Histogram> create_histogram_unbinned(const std::map<T, size_t> &
values.push_back(entry.first);
histogram.push_back(entry.second);
}
return std::make_unique<UnbinnedHistogram<T>>(std::move(histogram), std::move(values));
return ptr::make_unique<UnbinnedHistogram<T>>(std::move(histogram), std::move(values));
}
template<typename T, typename Iterable>
......@@ -230,7 +231,7 @@ std::unique_ptr<Histogram> create_histogram_autorange(const Iterable &range, siz
assert(idx > 0);
++bins[idx - 1];
});
return std::make_unique<HistogramT<T>>(std::move(bins), std::move(bin_boundaries), std::move(bin_widths));
return ptr::make_unique<HistogramT<T>>(std::move(bins), std::move(bin_boundaries), std::move(bin_widths));
}
template<typename Iterable>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment