fix: extend global patch to include std::make_unique for ofxPiMapper C++20 compatibility
This commit is contained in:
@ -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 <memory>' {} +
|
||||
|
||||
# 3. Fix missing algorithms (std::find, etc)
|
||||
|
||||
Reference in New Issue
Block a user