DRTVWR-559: Fix broken workqueue_test.cpp.

Apparently Visual Studio and Xcode disagree on the intended lifespan of a
certain temporary expression. Capturing it in a named variable works.
meow-7.2.2
Nat Goodspeed 2022-12-13 20:49:01 -05:00
parent 0c2e7a8eb7
commit 424d3ef83c
1 changed files with 2 additions and 2 deletions

View File

@ -419,8 +419,8 @@ namespace LL
// moved-from.
try
{
std::dynamic_pointer_cast<WorkSchedule>(mTarget.lock())->
post(std::move(*this), mStart);
auto target{ std::dynamic_pointer_cast<WorkSchedule>(mTarget.lock()) };
target->post(std::move(*this), mStart);
}
catch (const Closed&)
{