Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
ALL
-
v4.2, v4.0, v3.6
-
Dev Tools 2019-07-15, Dev Tools 2019-07-29
Description
```
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.
Attachments
Issue Links
- has to be done before
-
SERVER-41989 BSONObjBuilder::asTempObj is not exception safe
-
- Closed
-