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

Unified Diff: base/callback.h.pump

Issue 6718021: Callback support for unbound reference and array arguments. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaned up. Created 9 years, 9 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.pump
diff --git a/base/callback.h.pump b/base/callback.h.pump
index 34b0eb0b85549c82154064acf940ccaef4f4a42c..542a84ff704d68c2cfb53e211bf61c13d37279f8 100644
--- a/base/callback.h.pump
+++ b/base/callback.h.pump
@@ -240,10 +240,10 @@ class Callback<R($for ARG , [[A$(ARG)]])> : public internal::CallbackBase {
]]
public:
- typedef R(*PolymorphicInvoke)(internal::InvokerStorageBase*[[]]
+ typedef R(*PolymorphicInvoke)(
+ internal::InvokerStorageBase*[[]]
$if ARITY != 0 [[, ]]
-$for ARG ,
- [[const A$(ARG)&]]);
+$for ARG , [[typename internal::ParamTraits<A$(ARG)>::ForwardType]]);
Callback() : CallbackBase(NULL, NULL) { }
@@ -262,7 +262,7 @@ $for ARG ,
}
R Run($for ARG ,
- [[const A$(ARG)& a$(ARG)]]) const {
+ [[typename internal::ParamTraits<A$(ARG)>::ForwardType a$(ARG)]]) const {
PolymorphicInvoke f =
reinterpret_cast<PolymorphicInvoke>(polymorphic_invoke_);
« no previous file with comments | « base/callback.h ('k') | base/callback_internal.h » ('j') | base/callback_internal.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698