1 // Copyright (C) Joaquin M Lopez Munoz 2004.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 // See http://www.boost.org/libs/config for most recent version.
8 // MACRO: BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS
9 // TITLE: pointers to members as template arguments
10 // DESCRIPTION: Non-type template parameters which take pointers
11 // to members, fail to work correctly.
14 namespace boost_no_pointer_to_member_template_parameters{
25 template<int pair::* PtrToPairMember>
30 return p.*PtrToPairMember;
40 if((fx.bar(p) != 0) || (fy.bar(p) != 1))