robotology / osqp-eigen

Simple Eigen-C++ wrapper for OSQP library
https://robotology.github.io/osqp-eigen/
BSD 3-Clause "New" or "Revised" License
381 stars 112 forks source link

Missing include when compiling with MSVC 2022 #130

Closed enricodetoma closed 1 year ago

enricodetoma commented 1 year ago

I made a small fix for a missing include when compiling with MSVC 2022 (at line 56 there is assert(innerOsqpPosition == numberOfNonZeroCoeff); which requires <cassert> header).

traversaro commented 1 year ago

Thanks @enricodetoma, this is indeed a usual fix on other platforms to "include what you use". fyi @GiulioRomualdi

traversaro commented 1 year ago

This will fix https://github.com/robotology/osqp-eigen/issues/141 .

@S-Dafarra @GiulioRomualdi can we merge this?