|
Boost-Commit : |
From: tschwinger_at_[hidden]
Date: 2007-11-05 12:19:23
Author: t_schwinger
Date: 2007-11-05 12:19:23 EST (Mon, 05 Nov 2007)
New Revision: 40797
URL: http://svn.boost.org/trac/boost/changeset/40797
Log:
adds test case for pointer to data member type
Text files modified:
trunk/libs/function_types/test/decomposition/parameter_types.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
Modified: trunk/libs/function_types/test/decomposition/parameter_types.cpp
==============================================================================
--- trunk/libs/function_types/test/decomposition/parameter_types.cpp (original)
+++ trunk/libs/function_types/test/decomposition/parameter_types.cpp 2007-11-05 12:19:23 EST (Mon, 05 Nov 2007)
@@ -24,7 +24,7 @@
typedef C (C::*c_mem_func_ptr)(C,C) const;
typedef C (C::*v_mem_func_ptr)(C) volatile;
typedef C (C::*cv_mem_func_ptr)() const volatile;
-
+typedef C C::*mem_ptr;
BOOST_MPL_ASSERT((
mpl::equal< ft::parameter_types<func>, mpl::vector<C> >
@@ -54,3 +54,6 @@
mpl::equal< ft::parameter_types<cv_mem_func_ptr>, mpl::vector<C const volatile &> >
));
+BOOST_MPL_ASSERT((
+ mpl::equal< ft::parameter_types<mem_ptr>, mpl::vector<C &> >
+));
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk