Skip to content

Commit b7c1a40

Browse files
authored
Fix New Arch build failing with -std=c++20 (#42138)
1 parent 7c7baad commit b7c1a40

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/react-native/ReactCommon/react/renderer/core/PropsParserContext.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ namespace react {
1717
// It should be used as infrequently as possible - most props can and should
1818
// be parsed without any context.
1919
struct PropsParserContext {
20+
PropsParserContext(
21+
SurfaceId const surfaceId,
22+
ContextContainer const &contextContainer)
23+
: surfaceId(surfaceId), contextContainer(contextContainer) {}
24+
2025
// Non-copyable
2126
PropsParserContext(const PropsParserContext &) = delete;
2227
PropsParserContext &operator=(const PropsParserContext &) = delete;

0 commit comments

Comments
 (0)