merge(3p/absl): subtree merge of Abseil up to e19260f
... notably, this includes Abseil's own StatusOr type, which conflicted with our implementation (that was taken from TensorFlow). Change-Id: Ie7d6764b64055caaeb8dc7b6b9d066291e6b538f
This commit is contained in:
parent
cc27324d02
commit
082c006c04
854 changed files with 11260 additions and 5296 deletions
|
|
@ -71,14 +71,14 @@ template <typename Obj, typename R, typename... Args>
|
|||
R InvokeObject(VoidPtr ptr, typename ForwardT<Args>::type... args) {
|
||||
auto o = static_cast<const Obj*>(ptr.obj);
|
||||
return static_cast<R>(
|
||||
absl::base_internal::Invoke(*o, std::forward<Args>(args)...));
|
||||
absl::base_internal::invoke(*o, std::forward<Args>(args)...));
|
||||
}
|
||||
|
||||
template <typename Fun, typename R, typename... Args>
|
||||
R InvokeFunction(VoidPtr ptr, typename ForwardT<Args>::type... args) {
|
||||
auto f = reinterpret_cast<Fun>(ptr.fun);
|
||||
return static_cast<R>(
|
||||
absl::base_internal::Invoke(f, std::forward<Args>(args)...));
|
||||
absl::base_internal::invoke(f, std::forward<Args>(args)...));
|
||||
}
|
||||
|
||||
template <typename Sig>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue