Skip to content

Commit 3c90acf

Browse files
YLouWashUmeta-codesync[bot]
authored andcommitted
{Feature} Properly fix LLVM and MSVC requirement on capturing this in lambda. (#281)
Summary: Pull Request resolved: #281 This is for satisfying both the condition in D82976785, and address the failure in https://github.com/facebookresearch/projectaria_tools/actions/runs/18177647617/job/51747469890. Basically, you just can't do `[=, this]` under MSVC 2017. Reviewed By: SeaOtocinclus Differential Revision: D83720296 fbshipit-source-id: bec9f4d6bdd10b3360de5b474f58b275e6baa092
1 parent e0121ae commit 3c90acf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/data_provider/VrsDataProviderFactory.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ void VrsDataProviderFactory::addPlayers() {
119119
const SensorDataType sensorDataType = getSensorDataType(streamId.getTypeId());
120120

121121
// Define a lambda that sets the StreamPlayer to the reader and log its streamId
122-
auto setStreamAndLog = [=](const vrs::StreamId, vrs::RecordFormatStreamPlayer* player) -> void {
122+
auto setStreamAndLog = [this, streamId](
123+
const vrs::StreamId, vrs::RecordFormatStreamPlayer* player) -> void {
123124
reader_->setStreamPlayer(streamId, player);
124125
XR_LOGI(
125126
"streamId {}/{} activated",

0 commit comments

Comments
 (0)