Skip to content
Snippets Groups Projects
  • Sander, Oliver's avatar
    ed1173f7
    Replace std::tie by std::make_tuple · ed1173f7
    Sander, Oliver authored
    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.
    ed1173f7
    History
    Replace std::tie by std::make_tuple
    Sander, Oliver authored
    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.