
6 Jul
2011
6 Jul
'11
11:36 a.m.
On 7/6/2011 4:00 AM, John Maddock wrote:
BOOST_STATIC_ASSERT((boost::tti::has_comp_member_function_begin<std::vector<int>::const_iterator
(std::vector<int>::*)(void) const>::value));
does indeed work.
It does seem as if putting the 'const' at the end is the correct signature whereas putting it where you originally had it suggests a const member function pointer and not a member function pointer to a const member function.
In other words I *was* doing something silly ;-)
I guess so but it was hard to catch visually. I did not see it until I could compare what worked and what did not through a BOOST_MPL_ASSERT((boost::is_same(mf1::type,mf2::type))) test of the results of the two generated metafuncions.