Visual Studio 2019 Preview and Typetraits

Hi,

the internal compiler error C1001 Bertrand reported last year has disappeared in the latest VS 2019 Preview (16.0.0 Preview 2.1)
but when I include Root headers I still get the errors below. Im using Root 6.16.00 on Windows 7.

1>D:\apps\root_v6.16.00\include\ROOT\TypeTraits.hxx(43): error C2975: ‘HasCallOp’: invalid template argument for ‘ROOT::Detail::CallableTraitsImpl’, expected compile-time constant expression
1>D:\apps\root_v6.16.00\include\ROOT\TypeTraits.hxx(37): note: see declaration of ‘HasCallOp’
1>D:\apps\root_v6.16.00\include\ROOT\TypeTraits.hxx(46): note: see reference to class template instantiation ‘ROOT::Detail::CallableTraitsImpl<T,true>’ being compiled
1>D:\apps\root_v6.16.00\include\ROOT\TypeTraits.hxx(44): error C2975: ‘HasCallOp’: invalid template argument for ‘ROOT::Detail::CallableTraitsImpl’, expected compile-time constant expression
1>D:\apps\root_v6.16.00\include\ROOT\TypeTraits.hxx(37): note: see declaration of ‘HasCallOp’
1>D:\apps\root_v6.16.00\include\ROOT\TypeTraits.hxx(45): error C2975: ‘HasCallOp’: invalid template argument for ‘ROOT::Detail::CallableTraitsImpl’, expected compile-time constant expression
1>D:\apps\root_v6.16.00\include\ROOT\TypeTraits.hxx(37): note: see declaration of ‘HasCallOp’

Are you planing to fix this in a future release ?

Kind regards,
Martin

Hi Martin,

We are aware of this issue, and we are working on it.

Cheers, Bertrand.

Hi Martin,

And FYI, nothing disappears just by itself; we are working with the really helpful MSVC folks to get these issues resolved on their side where needed! There are some further MSVC fixes already in the pipeline for future MSVC releases.

Axel.

2 Likes