Skip to content

Commit

Permalink
fixing more API errors
Browse files Browse the repository at this point in the history
  • Loading branch information
patflick committed Oct 13, 2015
1 parent 1a842dd commit 6d78360
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions include/mxx/reduction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -689,12 +689,12 @@ inline void local_scan_inplace(Iterator begin, Iterator end) {

// std::vector overloads
template <typename T, typename Func>
inline void local_scan_inplace(const std::vector<T>& in, Func func) {
inline void local_scan_inplace(std::vector<T>& in, Func func) {
local_scan_inplace(in.begin(), in.end(), func);
}

template <typename T>
inline void local_scan_inplace(const std::vector<T>& in) {
inline void local_scan_inplace(std::vector<T>& in) {
local_scan_inplace(in.begin(), in.end(), std::plus<T>());
}

Expand All @@ -706,7 +706,7 @@ inline std::vector<T> local_scan(const std::vector<T>& in, Func func) {
}

template <typename T>
inline void local_scan(const std::vector<T>& in) {
inline std::vector<T> local_scan(const std::vector<T>& in) {
std::vector<T> result(in.size());
local_scan(in.begin(), in.end(), result.begin(), std::plus<T>());
return result;
Expand Down Expand Up @@ -899,12 +899,12 @@ inline void local_exscan_inplace(Iterator begin, Iterator end) {

// std::vector overloads
template <typename T, typename Func>
inline void local_exscan_inplace(const std::vector<T>& in, Func func) {
inline void local_exscan_inplace(std::vector<T>& in, Func func) {
local_exscan_inplace(in.begin(), in.end(), func);
}

template <typename T>
inline void local_exscan_inplace(const std::vector<T>& in) {
inline void local_exscan_inplace(std::vector<T>& in) {
local_exscan_inplace(in.begin(), in.end(), std::plus<T>());
}

Expand Down

0 comments on commit 6d78360

Please sign in to comment.