cpp11training
cpp11training copied to clipboard
Part of move-exercise is optimized-away
The exercise called 'speed_this_up_by_adding_move_support' has a duration call for a lambda that seems to be compiled away in release builds.
The expectation
EXPECT_LT(consuming_objects, constructing_objects * 1.1)
<< "consuming: " << consuming_objects
<< " vs. constructing: " << constructing_objects
becomes impossible to meet (consuming: ~1500ms vs. constructing: ~13ms)