Problems compiling with Libtorch v1.5.0 and VS toolset v140

I guess you can try to remove the constexprs as reported in the error log.

Could this be a bug in the actual Libtorch version or has Libtorch abandoned support for toolset v140?

We didn’t test the support for toolset v140. And there’s no plan for maintaining its support given the fact the binaries are compatible across v140 to v142.