Commit 9da28a94 authored by Nathan Bronson's avatar Nathan Bronson Committed by Facebook GitHub Bot

work around a VS2019 compiler crash

Summary:
This diff moves a struct definition out from the inside of
a closure, where it seems to have been causing a compilation issue
under VS2019.

Reviewed By: yfeldblum

Differential Revision: D20845042

fbshipit-source-id: 7b32c898490a8ba59f5e77f21e890097d9069a4f
parent 5b164159
......@@ -961,14 +961,15 @@ TEST(FiberManager, runInMainContext) {
checkRan = false;
manager.addTask([&]() {
struct A {
explicit A(int value_) : value(value_) {}
A(const A&) = delete;
A(A&&) = default;
struct A {
explicit A(int value_) : value(value_) {}
A(const A&) = delete;
A(A&&) = default;
int value;
};
int value;
};
manager.addTask([&]() {
int stackLocation;
auto ret = runInMainContext([&]() {
expectMainContext(checkRan, &mainLocation, &stackLocation);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment