Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mockingbirdnest/abseil-cpp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1264ab041227
Choose a base ref
...
head repository: mockingbirdnest/abseil-cpp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: bf1c94016936
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Jul 15, 2020

  1. Revert "std::result_of is deprecated"

    This reverts commit ba070d4.
    eggrobin committed Jul 15, 2020
    Copy the full SHA
    1c404f7 View commit details
  2. patch in a result_of

    eggrobin committed Jul 15, 2020
    Copy the full SHA
    bf1c940 View commit details
Showing with 14 additions and 0 deletions.
  1. +14 −0 absl/meta/type_traits.h
14 changes: 14 additions & 0 deletions absl/meta/type_traits.h
Original file line number Diff line number Diff line change
@@ -409,6 +409,20 @@ using common_type_t = typename std::common_type<T...>::type;
template <typename T>
using underlying_type_t = typename std::underlying_type<T>::type;

#if _MSVC_STL_VERSION >= 142
} // namespace absl
namespace std {
template <typename T>
struct result_of;
template <typename F, typename... Args>
struct result_of<F(Args...)> : std::invoke_result<void, F, Args...> {};
} // namespace std
namespace absl {
#endif

template <typename T>
using result_of_t = typename std::result_of<T>::type;

namespace type_traits_internal {
template <typename Key, typename = size_t>
struct IsHashable : std::false_type {};