From 7d191814ace645910bcf01fac2b1260fb9307367 Mon Sep 17 00:00:00 2001 From: Timothy Hofland Date: Fri, 13 Mar 2026 10:14:30 +0100 Subject: [PATCH] fix: extend global patch to include std::make_unique for ofxPiMapper C++20 compatibility --- scripts/setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/setup.sh b/scripts/setup.sh index 9e2baed..91b0d7f 100644 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -261,6 +261,7 @@ fi # 2. Fix unique_ptr and missing memory headers globally find src -type f \( -name "*.h" -o -name "*.cpp" \) -exec sed -i 's/\bunique_ptr\b/std::unique_ptr/g' {} + +find src -type f \( -name "*.h" -o -name "*.cpp" \) -exec sed -i 's/\bmake_unique\b/std::make_unique/g' {} + find src -type f -name "*.h" -exec sed -i '1i #include ' {} + # 3. Fix missing algorithms (std::find, etc)