Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65517 - trunk/libs/config/test
From: john_at_[hidden]
Date: 2010-09-21 13:09:58


Author: johnmaddock
Date: 2010-09-21 13:09:57 EDT (Tue, 21 Sep 2010)
New Revision: 65517
URL: http://svn.boost.org/trac/boost/changeset/65517

Log:
Update test case to make it a touch more strict.
Text files modified:
   trunk/libs/config/test/boost_no_nested_friendship.ipp | 24 ++++++++++++++++++++----
   1 files changed, 20 insertions(+), 4 deletions(-)

Modified: trunk/libs/config/test/boost_no_nested_friendship.ipp
==============================================================================
--- trunk/libs/config/test/boost_no_nested_friendship.ipp (original)
+++ trunk/libs/config/test/boost_no_nested_friendship.ipp 2010-09-21 13:09:57 EDT (Tue, 21 Sep 2010)
@@ -13,15 +13,31 @@
 namespace boost_no_nested_friendship {
 
 class A {
- static int b;
- class B {
- int f() { return b; }
+public:
+ A() {}
+ struct B {
+ int f(A& a)
+ {
+ a.f1();
+ a.f2(a);
+ return a.b;
+ }
    };
+
+private:
+ static int b;
+ static void f1(){}
+ template <class T>
+ static void f2(const T&){}
 };
 
+int A::b = 0;
+
 int test()
 {
- return 0;
+ A a;
+ A::B b;
+ return b.f(a);
 }
 
 }


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