You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I understand, the intended solution is to introduce temporaries and pass those to DoNotOptimize like in #1562? If so, I propose to change the examples accordingly to show users how to use DoNotOptimize properly without getting the warning.
The text was updated successfully, but these errors were encountered:
The const-reference API to DoNotOptimize was deprecated with google#1493. Some
examples in the user guide are using exactly that deprecated interface.
This fixes that by passing non-const lvalues instead. Fixesgoogle#1566
* Update AUTHORS/CONTRIBUTORS
* Fix examples with deprecated DoNotOptimize API
The const-reference API to DoNotOptimize was deprecated with #1493. Some
examples in the user guide are using exactly that deprecated interface.
This fixes that by passing non-const lvalues instead. Fixes#1566
A few examples from the User Guide trigger the warning introduced with #1493 for the const-reference version of
DoNotOptimize
:As far as I understand, the intended solution is to introduce temporaries and pass those to
DoNotOptimize
like in #1562? If so, I propose to change the examples accordingly to show users how to useDoNotOptimize
properly without getting the warning.The text was updated successfully, but these errors were encountered: