Skip to content

Commit e8bb025

Browse files
committed
veg: Fix Visual Studio 17.13 internal compiler error
1 parent 869649b commit e8bb025

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/proxsuite/linalg/veg/type_traits/constructible.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@ template<typename T>
166166
struct MoveFn
167167
{
168168
T&& value;
169+
// We should define a constructor to avoid an Internal compiler error with
170+
// Visual Studio 17.13
171+
MoveFn(T&& v)
172+
: value(VEG_FWD(v))
173+
{
174+
}
169175
VEG_INLINE constexpr auto operator()() const&& VEG_NOEXCEPT_IF(
170176
VEG_CONCEPT(nothrow_movable<T>)) -> T
171177
{

0 commit comments

Comments
 (0)