This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[VS 2017 15.8.8] error C4146 Eigen master

Tags: None
(comma "," separated)
nelsons
Registered Member
Posts
23
Karma
0
Hi,

Current master seems to raise errors with last VS 15.8.8:
(github 115d7c7dfe67000660646f20fb74f8c65e05c539)

Code: Select all
eigen\eigen\src\core\util\memory.h(101): error C4146: opérateur moins unaire appliqué à un type non signé, le résultat sera non signé


Code: Select all
#include <Eigen/Dense>


due to:
Code: Select all
EIGEN_DEVICE_FUNC inline void* handmade_aligned_malloc(std::size_t size, std::size_t alignment = EIGEN_DEFAULT_ALIGN_BYTES)
{
  eigen_assert(alignment >= sizeof(void*) && (alignment & -alignment) == alignment && "Alignment must be at least sizeof(void*) and a power of 2");


Any help would be appreciated


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell