messages private members

Gabriel Dos Reis gdr@integrable-solutions.net
Thu Oct 2 21:34:00 GMT 2003


Benjamin Kosnik <bkoz@redhat.com> writes:

| I'm not quite sure how my testing missed this. However, try this.

--- config/locale/gnu/messages_members.h	2 Oct 2003 21:12:46 -0000
***************
*** 39,45 ****
       : facet(__refs)
       {  
  #if !(__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2))
!        _M_name_messages = _S_c_name;
  #endif
         _M_c_locale_messages = _S_get_c_locale(); 
       }
--- 39,45 ----
       : facet(__refs)
       {  
  #if !(__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2))
!        _M_name_messages = _S_get_c_name();
                           ^^

needs "messages<_CharT>::" to become dependent (still better,
"locale::facet::"), or else error. 

Except that it passes compilation.

Thanks.

-- Gaby



More information about the Libstdc++ mailing list