From b93f0ddb8b56f5a8bb1b4af0c32ad44b6326be3c Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Fri, 13 Nov 2020 13:41:20 +0100 Subject: [PATCH] Don't depend on the parallel STL We were not linking with TBB, and it's a bit of a waste to require it just for this one unused function. --- CHANGELOG.md | 6 ++++++ src/plugin/plugin-bridge.cpp | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b530cd33..f1adb789 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +### Fixed + +- Fixed linking error in debug build related to the parallel STL. + ## [2.0.1] - 2020-11-08 ### Fixed diff --git a/src/plugin/plugin-bridge.cpp b/src/plugin/plugin-bridge.cpp index 2576bb7e..3f993b9d 100644 --- a/src/plugin/plugin-bridge.cpp +++ b/src/plugin/plugin-bridge.cpp @@ -16,8 +16,6 @@ #include "plugin-bridge.h" -#include - // Generated inside of the build directory #include #include @@ -515,8 +513,10 @@ void PluginBridge::do_process(T** inputs, T** outputs, int sample_frames) { // going to call this anyways we won't even bother with a separate // implementation and we'll just add `processReplacing()` results to // `outputs`. - std::transform(std::execution::unseq, - response_buffers[channel].begin(), + // We could use `std::execution::unseq` here but that would require + // linking to TBB and since this probably won't ever be used anyways + // that's a bit of a waste. + std::transform(response_buffers[channel].begin(), response_buffers[channel].end(), outputs[channel], outputs[channel], [](const T& new_value, T& current_value) -> T {