Skip to content

Comments

Replace std::result_of_t with std::invoke_result_t to fix C++20 build#43

Merged
alt-graph merged 1 commit intomainfrom
bugfix/cpp20_result_of_t
Feb 17, 2026
Merged

Replace std::result_of_t with std::invoke_result_t to fix C++20 build#43
alt-graph merged 1 commit intomainfrom
bugfix/cpp20_result_of_t

Conversation

@zykure
Copy link
Contributor

@zykure zykure commented Feb 17, 2026

This replaces all instances of std::result_of_t by the newer std::invoke_result_t.

The std::result_of_t template has been deprecated since C++17 and is not supported anymore by C++20. This change should therefore fix C++20 build issues that occur with some compilers/platforms.

Fixes #42

@zykure zykure requested review from Finii and alt-graph February 17, 2026 13:54
Copy link
Member

@alt-graph alt-graph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does what it should. Thanks a lot, @zykure!

@alt-graph alt-graph merged commit 0455e48 into main Feb 17, 2026
3 checks passed
@alt-graph alt-graph deleted the bugfix/cpp20_result_of_t branch February 17, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compilation in C++20 mode

2 participants