-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
-
Fully Compatible
-
ALL
-
v4.2, v4.0, v3.6
-
Dev Tools 2019-07-15, Dev Tools 2019-07-29
```
template< typename T >
void
f( T &&t )
```
This is somewhat incorrect (even though this has a `const T &` overload in `ScopeGuard` – `std::forward< T >` is what should be used.
We should also consider removing the move operations entirely from `ScopeGuard` in favour of using the pure MCE/NRV/RVO transform.
- has to be done before
-
SERVER-41989 BSONObjBuilder::asTempObj is not exception safe
- Closed