Skip to content

Conversation

haodayikuairou
Copy link

Remove the trailing return type from ThreadPool::enqueue declaration.
Since C++14, return type can be deduced from the definition. The definition
still uses using return_type = typename std::result_of<F(Args...)>::type;,
so behavior is unchanged. Built with g++ -std=c++17.

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.

1 participant