Fix windows build of RectangleEdges (#35516)
Summary:
[PR: Avoid emitting mountitems for default values](56e9aa369f
) used a constexpr in a template, which windows is unable to compile since type at this point is incomplete. Once removed, windows is able to build again. Let me know if there's a better way to fix this!
See [10072](https://github.com/microsoft/react-native-windows/issues/10072) for windows error messages
## Changelog
<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->
[General] [Fixed] - Remove constexpr from RectangleEdges.h
Pull Request resolved: https://github.com/facebook/react-native/pull/35516
Test Plan: Windows has forked this file and had the change for ~5 month, all tests pass on Windows side
Reviewed By: javache
Differential Revision: D41639514
Pulled By: rshest
fbshipit-source-id: fbe595f71a7ab0accb7a76edf58ffb6aeef1ae96
This commit is contained in:
Родитель
217696ee17
Коммит
879d303fc7
|
@ -44,7 +44,7 @@ struct RectangleEdges {
|
|||
};
|
||||
|
||||
template <typename T>
|
||||
constexpr RectangleEdges<T> const RectangleEdges<T>::ZERO = {};
|
||||
RectangleEdges<T> const RectangleEdges<T>::ZERO = {};
|
||||
|
||||
template <typename T>
|
||||
RectangleEdges<T> operator+(
|
||||
|
|
Загрузка…
Ссылка в новой задаче