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

Unified Diff: base/bind_internal_win.h

Issue 2039093002: Pass bound values as const values to the bound function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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
« no previous file with comments | « base/bind_internal.h ('k') | base/bind_unittest.nc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/bind_internal_win.h
diff --git a/base/bind_internal_win.h b/base/bind_internal_win.h
index 2def8743823da934f1fbdf77868d2b6d94320345..1d14717509e86848f5222be473f4b1bed5e07c77 100644
--- a/base/bind_internal_win.h
+++ b/base/bind_internal_win.h
@@ -36,7 +36,7 @@ class RunnableAdapter<R(__stdcall *)(Args...)> {
}
template <typename... RunArgs>
- R Run(RunArgs&&... args) {
+ R Run(RunArgs&&... args) const {
return function_(std::forward<RunArgs>(args)...);
}
@@ -57,7 +57,7 @@ class RunnableAdapter<R(__fastcall *)(Args...)> {
}
template <typename... RunArgs>
- R Run(RunArgs&&... args) {
+ R Run(RunArgs&&... args) const {
return function_(std::forward<RunArgs>(args)...);
}
« no previous file with comments | « base/bind_internal.h ('k') | base/bind_unittest.nc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698