Skip to content

Conversation

@asklar
Copy link
Member

@asklar asklar commented Feb 16, 2022

Description

Fixes #9559

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Why

VS 17.1 introduces stricter requirements on static_assert, which are causing a build break in the M.RN project. This fixes the previously invalid C++ code.

Microsoft Reviewers: Open in CodeFlow

@asklar asklar requested review from a team as code owners February 16, 2022 21:03
}
}

namespace details {
Copy link

Choose a reason for hiding this comment

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

details

(nit) can you pascal-case this namespace

Copy link

@NikoAri NikoAri left a comment

Choose a reason for hiding this comment

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

:shipit:

@asklar asklar added the AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity) label Feb 16, 2022
@ghost
Copy link

ghost commented Feb 16, 2022

Hello @asklar!

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.

Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 10 hours, a condition that will be fulfilled in about 9 hours 37 minutes. No worries though, I will be back when the time is right! 😉

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.

@ghost ghost merged commit 705a34d into microsoft:main Feb 17, 2022
@burtonrodman
Copy link

burtonrodman commented Feb 17, 2022

any word on what versions this will be backported to? I am currently stuck on 0.64.x due to touch handling change in 0.65+ breaking our Canvas touch drawing. i was able to manually patch this change into my node_modules to keep working today, but that obviously isn't a long term solution (nor something I was to release with my app).

Thanks!

@asklar asklar deleted the 9559 branch February 17, 2022 20:28
@asklar
Copy link
Member Author

asklar commented Feb 17, 2022

currently no plans to backport, this would go into 0.69; we currently don't officially support vs2022 (e.g. we don't target the vc143 package, or c++20, etc. as there is more work involved), so this is more of a future protection.

JunielKatarn pushed a commit to jurocha-ms/react-native-windows that referenced this pull request Feb 25, 2022
…r to avoid being evaluated too early (microsoft#9562)

* MustBeNoExceptVoidFunctor should depend on the template type parameter to avoid being evaluated too early

* Change files
JunielKatarn added a commit that referenced this pull request Feb 26, 2022
…arameter to avoid being evaluated too early (#9609)

* MustBeNoExceptVoidFunctor should depend on the template type parameter to avoid being evaluated too early (#9562)

* MustBeNoExceptVoidFunctor should depend on the template type parameter to avoid being evaluated too early

* Change files

* Change files

Co-authored-by: Alexander Sklar <asklar@microsoft.com>
@mikehardy
Copy link

In case anyone else needs to integrate this temporarily, it works great for me as-is from the PR diff as I'm updating react-native-device-info module and didn't want to revert my windows VM toolchain after updating it...

Here it is in patch-package form, gunzip it and drop it in patches/ after integrating patch-package per instructions in that repo
react-native-windows+0.67.3.patch.gz

@Shidouuu
Copy link

Shidouuu commented Mar 7, 2022

Thank you Anki guy, works beautifully.

asklar added a commit to asklar/react-native-windows that referenced this pull request Mar 29, 2022
…arameter to avoid being evaluated too early (microsoft#9609)

* MustBeNoExceptVoidFunctor should depend on the template type parameter to avoid being evaluated too early (microsoft#9562)

* MustBeNoExceptVoidFunctor should depend on the template type parameter to avoid being evaluated too early

* Change files

* Change files

Co-authored-by: Alexander Sklar <asklar@microsoft.com>
ghost pushed a commit that referenced this pull request Mar 31, 2022
…arameter to avoid being evaluated too early (#9749)

* [0.68] MustBeNoExceptVoidFunctor should depend on the template type parameter to avoid being evaluated too early (#9609)

* MustBeNoExceptVoidFunctor should depend on the template type parameter to avoid being evaluated too early (#9562)

* MustBeNoExceptVoidFunctor should depend on the template type parameter to avoid being evaluated too early

* Change files

* Change files

Co-authored-by: Alexander Sklar <asklar@microsoft.com>

* Change files

Co-authored-by: Julio César Rocha <JunielKatarn@users.noreply.github.com>
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.

Can't build a RNW project with Visual Studio 2022 17.1

6 participants