Skip to content

Replace std::tie by std::make_tuple

Sander, Oliver requested to merge fix-undefined-behavior-bug into master

The code erroneously used std::tie to combine two local variables to a single return value. That may fail because std::tie produces a tuple of references. Once the method has returned these references may or may not be valid anymore. I am surprised that this bug has not caused trouble much earlier.

Merge request reports

Loading