opensim-org / opensim-core

SimTK OpenSim C++ libraries and command-line applications, and Java/Python wrapping.
https://opensim.stanford.edu
Apache License 2.0
759 stars 308 forks source link

Upgrade SWIG requirement to `v4.1.1` #3727

Closed nickbianco closed 4 months ago

nickbianco commented 4 months ago

Brief summary of changes

This change upgrades the required SWIG version to 4.1.1 for two main reasons:

  1. Native support for std::unique_ptr conversion.
  2. Support for C++ attributes (e.g., [[deprecated]]).

In addition to upgrading the required SWIG version, I've removed all custom implementations of unique_ptr in the bindings and replaced them with SWIG macros.

Testing I've completed

Looking for feedback on...

CHANGELOG.md (choose one)


This change is Reviewable

nickbianco commented 4 months ago

Thanks @aymanhab!