lundi 1 août 2016

C++11 constexpr causes compiler's internal error (C1001)

I am using Visual Studio 2015 Update 3.

I get a fatal error:

(code C1001) : An internal error has occurred in the compiler.

Here is the code :

template<typename T>
constexpr T epsilon = std::numeric_limits<T>::epsilon();

I read it was fixed in Visual Studio Update 2. Can someone explain me why I am getting this error? Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire