> For the complete documentation index, see [llms.txt](https://docs.oserosuite.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.oserosuite.com/technical-notes/unreal-engine-notes/compile-errors/implicit-capture-of-this-via-is-deprecated.md).

# Implicit Capture of 'This' via '\[=]' is Deprecated

### Error <a href="#error" id="error"></a>

```
Error C4855 implicit capture of 'this' via '[=]' is deprecated in '/std:c++20'
```

### Cause <a href="#cause" id="cause"></a>

Lambdas change slighlty with the upgrade to c++20, which gets implemented in 5.3. This error happens when upgrading something from 5.2 to 5.3.

### Fix <a href="#fix" id="fix"></a>

In 5.2, a lambda is defined like this:

```cpp
auto TracePositive = [=]() -> FHitResult {};
```

But in 5.3, it needs to become this:

```cpp
auto TracePositive = [=, this]() -> FHitResult {};
```
