lundi 9 mai 2022

Getting noexcept-specifier of a callable object [closed]

I've got a template-argument of a type that is callable. I want to make the function that takes this callable object as an argument noexcept dependent on if the callable object itself is noexcept, given its approppriate parameters. The callable object doesn't have a default-constructor but only a copy-constructor. I didn't manage to do this, even not with concepts.

Aucun commentaire:

Enregistrer un commentaire