[ http://issues.apache.org/jira/browse/XERCESC-874?page=all ]

Alberto Massari resolved XERCESC-874.
-------------------------------------

    Resolution: Won't Fix
      Assignee:     (was: Xerces-C Developers Mailing List)

In the current codebase, the fAdoptedElems, fElemList and fCurCount members are 
accessed using the syntax this->xxx that should make the 'using' statements 
unnecessary

> util/RefArrayVectorOf.hpp needs modification to obey the Standard
> -----------------------------------------------------------------
>
>                 Key: XERCESC-874
>                 URL: http://issues.apache.org/jira/browse/XERCESC-874
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 2.2.0
>         Environment: Operating System: Other
> Platform: Other
>            Reporter: Jorma Laaksonen
>
> When the code is compiled with a Compaq/HP native cxx compiler with "-std
> strict_ansi" flag, the compiler ends in an error because the members of
> the BaseRefVectorOf<TElem> class are not visible in the derived
> RefArrayVectorOf<TElem> class.  This behavior seems to be correct with respect
> to the C++ Standard and eg. g++ is too admissive in this situation.
> Here is a working patch, which should not harm other environments:
> *** RefArrayVectorOf.hpp.orig   Fri Feb  7 02:53:58 2003
> --- RefArrayVectorOf.hpp        Wed May  7 11:22:46 2003
> ***************
> *** 11,16 ****
> --- 11,20 ----
>    */
>   template <class TElem> class RefArrayVectorOf : public 
> BaseRefVectorOf<TElem>
>   {
> +   using BaseRefVectorOf<TElem>::fAdoptedElems;
> +   using BaseRefVectorOf<TElem>::fCurCount;
> +   using BaseRefVectorOf<TElem>::fElemList;
> +
>   public :
>       // 
> -----------------------------------------------------------------------
>       //  Constructor

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to