stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject svn commit: r640567 - /stdcxx/trunk/tests/src/braceexp.cpp
Date Mon, 24 Mar 2008 20:46:23 GMT
Author: vitek
Date: Mon Mar 24 13:46:18 2008
New Revision: 640567

URL: http://svn.apache.org/viewvc?rev=640567&view=rev
Log:

2008-03-24  Travis Vitek  <vitek@roguewave.com>>

	STDCXX-784
	* tests/src/braceexp.cpp: Work around SunPro bug that causes a
	compile failure when using private declarations in nested types.


Modified:
    stdcxx/trunk/tests/src/braceexp.cpp

Modified: stdcxx/trunk/tests/src/braceexp.cpp
URL: http://svn.apache.org/viewvc/stdcxx/trunk/tests/src/braceexp.cpp?rev=640567&r1=640566&r2=640567&view=diff
==============================================================================
--- stdcxx/trunk/tests/src/braceexp.cpp (original)
+++ stdcxx/trunk/tests/src/braceexp.cpp Mon Mar 24 13:46:18 2008
@@ -261,11 +261,12 @@
                             const char* end,
                             char* buf, _RWSTD_SIZE_T len, char sep);
 
-private:
 
-    // not implemented
-    _rw_brace_graph (const _rw_brace_graph&);
-    _rw_brace_graph& operator= (const _rw_brace_graph&);
+#  if defined(__SUNPRO_CC) && (__SUNPRO_CC < 0x570)
+public:
+#  else
+private:
+#  endif   // __SUNPRO_CC && 0x560 < __SUNPRO_CC
 
     // node for a directed-acyclic-graph that we build from the original
     // brace expression
@@ -278,6 +279,15 @@
         _rw_brace_node* child_;
     };
 
+    // the number of nodes held by each brace buffer [see below]
+    enum { size = 64 };
+
+private:
+
+    // not implemented
+    _rw_brace_graph (const _rw_brace_graph&);
+    _rw_brace_graph& operator= (const _rw_brace_graph&);
+
     // retrieve a new node. nodes are allocated in large blocks. those
     // blocks are deallocated when this graph instance is destroyed.
     // and they are reused for every build_and_expand() call.
@@ -305,9 +315,6 @@
     // format is `{a,b[,c]}suffix', where `a', `b' and `c' are full
     // brace expansions that would be processed by build_anything.
     _rw_brace_node* build_list     (const char* beg, const char* end);
-
-    // the number of nodes held by each brace buffer [see below]
-    enum { size = 64 };
 
     // this is essentially a rope with a fixed length payload of
     // brace nodes



Mime
View raw message