locale::{facet,id,category} must be public

Chip Salzenberg chip@valinux.com
Sat Apr 1 00:00:00 GMT 2000


The current snapshot of g++ enforces visibility rules on types.

2000-02-07  Chip Salzenberg  <chip@valinux.com>

	* localefwd.h (locale): Make public: facet, id, category.

Index: localefwd.h
===================================================================
RCS file: /cvs/libstdc++/libstdc++/bits/localefwd.h,v
retrieving revision 1.5
diff -u -2 -r1.5 localefwd.h
--- localefwd.h	1999/12/18 10:16:41	1.5
+++ localefwd.h	2000/02/07 23:47:42
@@ -1,5 +1,5 @@
 // Locale support -*- C++ -*-
 
-// Copyright (C) 1997-1999 Cygnus Solutions
+// Copyright (C) 1997-2000 Cygnus Solutions
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
@@ -209,12 +209,7 @@
   class locale
   {
-    // Types:
-    class facet;
-    class id;
-    class _Impl;
-    typedef int category;
-
     // Forwrd decls and friends:
-    friend class _Impl;
+    class _Impl;
+    friend _Impl;
 
     template<typename _Facet>
@@ -227,4 +222,8 @@
  
   public:
+    // Types:
+    class facet;
+    class id;
+    typedef int category;
 
     // Category values:


-- 
Chip Salzenberg              - a.k.a. -            <chip@valinux.com>
 "Come back to AT&T!"  "We're your friends and family now!"  //MST3K


More information about the Libstdc++ mailing list