Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes to bridging/base.h for MSVC compatibility (#47882)
Summary: Attempting to use the various bridging template and generated C++ Specs for native modules in a project compiling with MSVC does not build. For the fromJs I had to add `std::move` - otherwise it could not cast. The supportsFromJs and supportsToJs are changed to address an IntelliSense issue where the template specialization cannot have default members. ## Changelog: [GENERAL] [FIXED] - Fix C++ bridging template compatibility with MSVC Pull Request resolved: #47882 Test Plan: It continues to build on Android/iOS builds. And it also builds with MSVC for react-native-windows and other out of tree platforms that use MSVC. Reviewed By: cipolleschi Differential Revision: D66360833 Pulled By: javache fbshipit-source-id: bf97db1cd247a383eb86cac31c601e8ab3400fd2
- Loading branch information