Visual Studio has a thing where it will some times refuse to inline even the most obvious functions unless you specify that is should, by using the `inline` keyword.
In an optimized build I get non-inlined calls to:
T* const_cast_ptr(const T* ptr)
--- d:\work\include\eigen\src\core\util\xprhelper.h --------------------
call Eigen::internal::const_cast_ptr<double> (013F4C8215h)
mov r14,qword ptr [r14+8]
I propose to add the `inline` keyword to const_cast_ptr to make MSVC inline it. I have done it locally and it has the intended effect.
That change appears harmless enough. Pushed to default and 3.2 branches:
-- GitLab Migration Automatic Message --
This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/898.