summaryrefslogtreecommitdiffstats
path: root/base/bind_unittest.nc
diff options
context:
space:
mode:
authortzik <tzik@chromium.org>2015-02-05 11:11:26 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-05 19:12:47 +0000
commit8ce65709225bac5922e6b2b80a912cf9796949b1 (patch)
tree6b7339e48649d2e469079565a8e7d3e1d0ca06dd /base/bind_unittest.nc
parentd5626f6497c92188cc5d88b6778f7bae0b33c1b3 (diff)
downloadchromium_src-8ce65709225bac5922e6b2b80a912cf9796949b1.zip
chromium_src-8ce65709225bac5922e6b2b80a912cf9796949b1.tar.gz
chromium_src-8ce65709225bac5922e6b2b80a912cf9796949b1.tar.bz2
Bind: Use Variadic Templates in bind_internal.h
* Introduce TypeList as helpers. * Drop bind_internal.h.pump and replace generated codes with Variadic Templates version. BUG=433164 Review URL: https://codereview.chromium.org/743853002 Cr-Commit-Position: refs/heads/master@{#314847}
Diffstat (limited to 'base/bind_unittest.nc')
-rw-r--r--base/bind_unittest.nc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/bind_unittest.nc b/base/bind_unittest.nc
index 33b5f5c..2596386 100644
--- a/base/bind_unittest.nc
+++ b/base/bind_unittest.nc
@@ -190,7 +190,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, void \(\)>::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, internal::TypeList<> >::UnboundRunType>' to 'Callback<void \(\)>'"]
// Bind result cannot be assigned to Callbacks with a mismatching type.
void WontCompile() {