On 14 September 2012 14:35, Steven Watanabe <watanabesj@gmail.com> wrote:

There's this trick:
function_traits<void(AB<2, 3>)>::arg1_type.
Unfortunately, this loses CV qualifiers.

That works (and BOOST_IDENTITY_TYPE is just a wrapper around that trick).  I'm not worried about the CV qualifiers, as using them on member variables is rare in our code base.

Thanks,
--
 Nevin ":-)" Liber  <mailto:nevin@eviloverlord.com>  (847) 691-1404