You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Saving note from an email, there are a ton of a simplifications that can be made now that C++17 is required:
A lot of code needs better comments, and there are also big swathes that are overcomplicated because they were written to use c++11, and can now be simplified with c++17. Examples:
AUTO_RETURN macro uses can be replaced with auto return types
Priority<0>, Prioriity<1>, Priority<2> overloads used for conditional compilation can all go away and be replaced with if constexpr
std::tuple indexing code can go away and be replaced with std::apply
Basically all of mp/util.h can go away. Also kj::mvCapture uses can replaced with shorter direct captures.
The text was updated successfully, but these errors were encountered:
…ides
cf7ebfe Replace ThreadMap Passfield override with generic count(0) override (Russell Yanofsky)
3f388cf Inline last AUTO_RETURN uses and remove macro (Russell Yanofsky)
41db49c Consolidate PassField function to remove AUTO_RETURN uses (Russell Yanofsky)
1d00505 Replace output.init AUTO_RETURN uses with decltype(auto) (Russell Yanofsky)
ea1a77b Replace AUTO_RETURN uses with decltype(auto) (Russell Yanofsky)
Pull request description:
This is part of #46. `AUTORET` macro is no longer needed with C++14 `decltype(auto)`
Top commit has no ACKs.
Tree-SHA512: dbd2e60787c2f9c78251d1dc47601be3c52ced1e2a84391de6e3d08a920907542b6c906ca30d0f70ba8c3226952a67c39ab8ddca58f55d920a963335a9ad2e5a
Saving note from an email, there are a ton of a simplifications that can be made now that C++17 is required:
Basically all of mp/util.h can go away. Also
kj::mvCapture
uses can replaced with shorter direct captures.The text was updated successfully, but these errors were encountered: