Compatibility with VS2019 (#1182)
Summary: Some changes to get Poly compiling with VS2019 (and correcting an oversight from https://github.com/facebook/folly/pull/1174) The change to `detail/TypeList.h` is straightforward I think. The introduction of `getOpsImpl` I find a bit distasteful...I will remark that as of Visual Studio 16.2.0 Preview 3.0 it is not necessary, but it is still needed on Visual Studio 16.1.5 (latest release, non preview). Orvid in your comment [here](https://github.com/facebook/folly/pull/1178#issuecomment-506864383) you mentioned the question of supporting VS 2017 or VS 2019 given that Poly had no MSVC support at all beforehand. I re-downloaded VS 2017 on my machine to test against the fixes added here and the situation seemed discouraging with lots more errors and perhaps less obvious workarounds. I have not made any changes to the CMake stuff for Poly on MSVC: https://github.com/facebook/folly/blob/master/CMakeLists.txt#L235 I'm not sure if once we resolve the issue above we might want to add some logic maybe [here](https://github.com/facebook/folly/blob/master/CMakeLists.txt#L63) to handle which version of MSVC is approved for poly; will wait for further direction on that. Pull Request resolved: https://github.com/facebook/folly/pull/1182 Reviewed By: Orvid Differential Revision: D16109504 Pulled By: yfeldblum fbshipit-source-id: d20b242494b075ce91452215c2025584fe488d65
Showing
Please register or sign in to comment