On Friday, 13 March 2020 10:55:29 EST Konstantin Ritt wrote: > Ah I see Q_DISABLE_COPY(QScopeGuard), so perhaps that's the docu issue.
It's not QScopeGuard that is being copied/moved, but the callable. You can pass a functor there (like std::function), which needs to be copied into the QScopeGuard object before C++17 and mandatory copy elision. That functor should not throw when being copied, much less when moving. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel System Software Products _______________________________________________ Development mailing list [email protected] https://lists.qt-project.org/listinfo/development
