do not rely on deprecated __cpp_template_auto macro (#1174)
Summary: Introduces a `FOLLY_NTTP_AUTO` macro to test if NTTP is available. As per [cppreference](https://en.cppreference.com/w/User:D41D8CD98F/feature_testing_macros), the macro `__cpp_nontype_template_parameter_auto` is the correct feature test macro to use for the NTTP used to define poly member list. The `__cpp_template_auto` version is checked too, but it was [deprecated](https://fossies.org/diffs/gcc/8.2.0_vs_8.3.0/gcc/c-family/ChangeLog-diff.html) in gcc 8.3 and not supported at all in MSVC. Pull Request resolved: https://github.com/facebook/folly/pull/1174 Reviewed By: yfeldblum Differential Revision: D15906768 Pulled By: Orvid fbshipit-source-id: 831213ec1214a234246bb6b01be89574a0cace25
Showing
Please register or sign in to comment