]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Seems as if previous test did not work.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 24 Jun 2002 12:04:08 +0000 (12:04 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 24 Jun 2002 12:04:08 +0000 (12:04 +0000)
git-svn-id: https://svn.dealii.org/trunk@6182 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4

index 44bde186e77ca2d5fcefd7e2d3250af6831997ce..2201b1c44fb7e779c970939d871c1d406bd9f9f4 100644 (file)
@@ -2007,11 +2007,12 @@ dnl try to detect this, and set a flag correspondingly. in short,
 dnl the DR says that this is allowed, since member classes are
 dnl implicitly also friends:
 dnl -----------------------------
-dnl class X {
-dnl     static int i;
-dnl    
+dnl struct X {
+dnl   private:
+dnl     static int f();
+dnl     
 dnl     struct Y {
-dnl         int f() { return i; };
+dnl         int g() { return f(); };
 dnl     };
 dnl };
 dnl -----------------------------
@@ -2028,11 +2029,12 @@ AC_DEFUN(DEAL_II_CHECK_NESTED_CLASS_FRIEND_BUG, dnl
   CXXFLAGS="$CXXFLAGSG"
   AC_TRY_COMPILE(
     [
-       class X {
-           static int i;
-   
+       struct X {
+         private:
+           static int f();
+           
            struct Y {
-               int f() { return i; };
+               int g() { return f(); };
            };
        };
     ],

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.