using #include <unsupported/Eigen/CXX11/Tensor> can lead to compilation problems for Windows system due to strange include choices within the file (for example it pulls in macros for max and min which dont play well with std::min/max [properly pulled in due to #include <windows.h>])
typedef __int16 int16_t;
typedef unsigned __int16 uint16_t;
typedef __int32 int32_t;
typedef unsigned __int32 uint32_t;
typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
Why? It should by CXX11 so just include <cstdint>
Again why? Are we CXX11 or before? Include <ctime> or (better) <chrono>
The removal of this code needs some extra work in TensorRandom header but it is easily done. (using std::random_device instead of two calls to rand() and some windows call to get a time)
#if __cplusplus >= 201103L
this will not work in future versions of Visual Studio due to missing <unistd.h> header
This module supports to some extent C++98 too, nonetheless, I agree that in the c++11 mode, all this mess should be bypassed.
-- 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/1460.