diff options
author | tzik <tzik@chromium.org> | 2015-12-14 22:41:49 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-15 06:42:38 +0000 |
commit | ce3ecf87d878414a8b475549c72ae799f1e1c5c9 (patch) | |
tree | cfeb81b71fea92c6c2a6b6171ad2a1f18c21d446 /base/bind_unittest.nc | |
parent | 1c3ff0ea380d91301215c7bfe966b992e62c2bdb (diff) | |
download | chromium_src-ce3ecf87d878414a8b475549c72ae799f1e1c5c9.zip chromium_src-ce3ecf87d878414a8b475549c72ae799f1e1c5c9.tar.gz chromium_src-ce3ecf87d878414a8b475549c72ae799f1e1c5c9.tar.bz2 |
Clean up base::Callback stuff
* Typo fix
* Remove unused or duplicated forward decls
* Make Callback ctor explicit
* Simplify BindState param by expanding TypeList
BUG=
Review URL: https://codereview.chromium.org/1507143003
Cr-Commit-Position: refs/heads/master@{#365184}
Diffstat (limited to 'base/bind_unittest.nc')
-rw-r--r-- | base/bind_unittest.nc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/bind_unittest.nc b/base/bind_unittest.nc index fb8f28a..70c479f 100644 --- a/base/bind_unittest.nc +++ b/base/bind_unittest.nc @@ -193,7 +193,7 @@ void WontCompile() { weak_ptr_with_non_void_return_type.Run(); } -#elif defined(NCTEST_DISALLOW_ASSIGN_DIFFERENT_TYPES) // [r"fatal error: no viable conversion from 'Callback<typename internal::BindState<typename internal::FunctorTraits<void \(\*\)\(int\)>::RunnableType, typename internal::FunctorTraits<void \(\*\)\(int\)>::RunType, internal::TypeList<> >::UnboundRunType>' to 'Callback<void \(\)>'"] +#elif defined(NCTEST_DISALLOW_ASSIGN_DIFFERENT_TYPES) // [r"fatal error: no viable conversion from 'Callback<typename internal::BindState<typename internal::FunctorTraits<void \(\*\)\(int\)>::RunnableType, typename internal::FunctorTraits<void \(\*\)\(int\)>::RunType>::UnboundRunType>' to 'Callback<void \(\)>'"] // Bind result cannot be assigned to Callbacks with a mismatching type. void WontCompile() { |