Skip to content

Added inline to REACT_STRUCT's GetStructInfo to use in header files - #4659

Merged
2 commits merged into
microsoft:0.61-stablefrom
vmoroz:Fix_REACT_STRUCT_inline_issue
Apr 21, 2020
Merged

2 commits merged into
microsoft:0.61-stablefrom
vmoroz:Fix_REACT_STRUCT_inline_issue

Conversation

@vmoroz

@vmoroz Vladimir Morozov (vmoroz) commented Apr 21, 2020 •

Copy link
Copy Markdown
Member

The changes is targeting the 0.61-stable branch. It is already fixed in master in PR #4656.
This PR Closes #4631.

The issue is that the REACT_STRUCT implements a GetStructInfo function and it does not have the inline keyword. It causes a linker error if a header file with such REACT_STRUCT code is included in multiple .cpp files.

In this PR we add the missing inline keyword to fix the issue.

Microsoft Reviewers: Open in CodeFlow

@NikoAri Nikolai Aristov (NikoAri) left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@vmoroz Vladimir Morozov (vmoroz) added the AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity) label Apr 21, 2020
@ghost

Copy link
Copy Markdown

Hello Vladimir Morozov (@vmoroz)!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants