DescriptionPass bound values in base::Bind as const values
This CL replace a static_assert() in base::Bind with "const" qualifier
check to make base::Bind simpler.
base::Bind has static_assert()s to prevent the target function from
modifying the bound variable directly. But, it uses complex templates
and is hard to read. The same check can be done by passing the values
as const ones.
BUG=554299
Committed: https://crrev.com/9921447d7642c8c0532e926076782facbc62bcb5
Cr-Commit-Position: refs/heads/master@{#402059}
Patch Set 1 #Patch Set 2 : +bind_internal_win.h #Patch Set 3 : rebase #
Messages
Total messages: 17 (10 generated)
|