Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2391)

Unified Diff: base/callback.h

Issue 6538045: Callback: Replumb the type-inference. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/base
Patch Set: rebased Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/callback.h
diff --git a/base/callback.h b/base/callback.h
index 05a7182c3d07c175230ef274f7c55afdf46db340..65d803b25bf5178cd2d7bc1ccc0c553f7b37123f 100644
--- a/base/callback.h
+++ b/base/callback.h
@@ -238,7 +238,7 @@ class Callback<R(void)> {
// return the exact Callback<> type. See base/bind.h for details.
template <typename T>
Callback(const internal::InvokerStorageHolder<T>& invoker_holder)
- : polymorphic_invoke_(&T::FunctionTraits::DoInvoke) {
+ : polymorphic_invoke_(&T::Invoker::DoInvoke) {
invoker_storage_.swap(invoker_holder.invoker_storage_);
}
@@ -267,7 +267,7 @@ class Callback<R(A1)> {
// return the exact Callback<> type. See base/bind.h for details.
template <typename T>
Callback(const internal::InvokerStorageHolder<T>& invoker_holder)
- : polymorphic_invoke_(&T::FunctionTraits::DoInvoke) {
+ : polymorphic_invoke_(&T::Invoker::DoInvoke) {
invoker_storage_.swap(invoker_holder.invoker_storage_);
}
@@ -297,7 +297,7 @@ class Callback<R(A1, A2)> {
// return the exact Callback<> type. See base/bind.h for details.
template <typename T>
Callback(const internal::InvokerStorageHolder<T>& invoker_holder)
- : polymorphic_invoke_(&T::FunctionTraits::DoInvoke) {
+ : polymorphic_invoke_(&T::Invoker::DoInvoke) {
invoker_storage_.swap(invoker_holder.invoker_storage_);
}
@@ -330,7 +330,7 @@ class Callback<R(A1, A2, A3)> {
// return the exact Callback<> type. See base/bind.h for details.
template <typename T>
Callback(const internal::InvokerStorageHolder<T>& invoker_holder)
- : polymorphic_invoke_(&T::FunctionTraits::DoInvoke) {
+ : polymorphic_invoke_(&T::Invoker::DoInvoke) {
invoker_storage_.swap(invoker_holder.invoker_storage_);
}
@@ -366,7 +366,7 @@ class Callback<R(A1, A2, A3, A4)> {
// return the exact Callback<> type. See base/bind.h for details.
template <typename T>
Callback(const internal::InvokerStorageHolder<T>& invoker_holder)
- : polymorphic_invoke_(&T::FunctionTraits::DoInvoke) {
+ : polymorphic_invoke_(&T::Invoker::DoInvoke) {
invoker_storage_.swap(invoker_holder.invoker_storage_);
}
@@ -406,7 +406,7 @@ class Callback<R(A1, A2, A3, A4, A5)> {
// return the exact Callback<> type. See base/bind.h for details.
template <typename T>
Callback(const internal::InvokerStorageHolder<T>& invoker_holder)
- : polymorphic_invoke_(&T::FunctionTraits::DoInvoke) {
+ : polymorphic_invoke_(&T::Invoker::DoInvoke) {
invoker_storage_.swap(invoker_holder.invoker_storage_);
}
@@ -449,7 +449,7 @@ class Callback<R(A1, A2, A3, A4, A5, A6)> {
// return the exact Callback<> type. See base/bind.h for details.
template <typename T>
Callback(const internal::InvokerStorageHolder<T>& invoker_holder)
- : polymorphic_invoke_(&T::FunctionTraits::DoInvoke) {
+ : polymorphic_invoke_(&T::Invoker::DoInvoke) {
invoker_storage_.swap(invoker_holder.invoker_storage_);
}
« base/bind_internal.h ('K') | « base/bind_internal.h.pump ('k') | base/callback.h.pump » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698