Files
boost_config/test/boost_no_nested_friendship.ipp
T
2008-09-20 08:58:10 +00:00

22 lines
380 B
C++

// MACRO: BOOST_NO_NESTED_FRIENDSHIP
// TITLE: Access to private members from nested classes
// DESCRIPTION: If the compiler fails to support access to private members
// from nested classes
namespace boost_no_nested_friendship {
class A {
static int b;
class B {
int f() { return b; }
};
};
int test()
{
return 0;
}
}