Skip to content
Snippets Groups Projects

Cleanup/deprecate Dune::Std::is_callable is_invocable

Merged Timo Koch requested to merge cleanup/deprecate-is-callable-invokable into master
1 unresolved thread

see #251 (closed)

  • Deprecate Dune::Std::is_callable and Dune::Std::is_invocable
  • Add Dune::IsCallable checking if f(args...) works
  • Replace occurrences of the traits in OverloadSet
  • Added changelog entry

Dune::Std::is_callable didn't get standardized and Dune::Std::is_invocable is available in C++17 as std::is_invocable (but is more general than the Dune implementation also allowing to invoke member functions/data members). Since these two traits described slightly different concepts this also provides and new and improved implementation Dune::IsCallable which is defined compactly in terms of two C++17 traits.

The traits aren't currently used in any of the other core modules.

Edited by Timo Koch

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Timo Koch added 3 commits

    added 3 commits

    • b472ed0f - [typetraits] Implement Dune::IsCallable
    • dfd67346 - [cleanup][overloadset] Remove outdated version check and comments on compilers...
    • a3005fc3 - [cleanup][overloadset] Use Dune::IsCallable to replace Dune::Std::is_callable

    Compare with previous version

  • Timo Koch requested review from @carsten.graeser

    requested review from @carsten.graeser

  • Timo Koch resolved all threads

    resolved all threads

  • Timo Koch changed the description

    changed the description

  • Simon Praetorius added 15 commits

    added 15 commits

    • a3005fc3...cd213143 - 10 commits from branch master
    • ddbe19c3 - [typetraits] Depcrecate Std::is_invocable/is_callable. Use C++17 std::is_invocable instead
    • 7666b559 - [typetraits] Implement Dune::IsCallable
    • d1568594 - [cleanup][overloadset] Remove outdated version check and comments on compilers...
    • 73cdb120 - [cleanup][overloadset] Use Dune::IsCallable to replace Dune::Std::is_callable
    • 4cb8bb37 - Add doxygen deprecation comment

    Compare with previous version

  • Simon Praetorius enabled an automatic merge when the pipeline for 4cb8bb37 succeeds

    enabled an automatic merge when the pipeline for 4cb8bb37 succeeds

  • mentioned in commit 57b1eb2e

  • Simon Praetorius picked the changes into the branch cherry-pick-57b1eb2e with commit 89374ca4

    picked the changes into the branch cherry-pick-57b1eb2e with commit 89374ca4

  • mentioned in commit 89374ca4

  • Simon Praetorius mentioned in merge request !979 (merged)

    mentioned in merge request !979 (merged)

  • Timo Koch mentioned in merge request !774 (closed)

    mentioned in merge request !774 (closed)

  • Carsten Gräser mentioned in merge request !1139 (merged)

    mentioned in merge request !1139 (merged)

  • Please register or sign in to reply
    Loading