[ 
http://issues.apache.org/jira/browse/XERCESC-1323?page=comments#action_57383 ]
     
Alberto Massari commented on XERCESC-1323:
------------------------------------------

Hi Bob,
I trust you when you say that the C++ specs allow implementation-specific 
behaviors when not all the inherited copy constructors are public.
But the fix would be to either remove the protected copy constructor of XMemory 
or make it public, and this is something that goes against the purpose that the 
writer of that code, Peiyong, had in mind (i.e. preventing XMemory from being 
used outside a derived class); on the other hand, the warning is reported only 
by Visual C++, that seems to behave properly when "catch(Type&)" is used.
So, in my opinion, this warning can stay, unless Peiyong agrees that XMemory 
having a protected constructor (instead of a protected constructor and copy 
constructor) is enough.

Alberto


> CLONE -XMemory related warning
> ------------------------------
>
>          Key: XERCESC-1323
>          URL: http://issues.apache.org/jira/browse/XERCESC-1323
>      Project: Xerces-C++
>         Type: Bug
>   Components: Build
>     Versions: Nightly build (please specify the date)
>  Environment: Operating System: Windows NT/2K
> Platform: PC
>     Reporter: Robert Buck

>
> When building (VS.NET 2003) my app with latest CVS snapshot (20031120171656) 
> I 
> keep getting warning (level 4) :
> D:\Utils\xerces\src\xercesc\internal\XSerializeEngine.hpp(664) : warning 
> C4673: 
> throwing 'xercesc_2_4::XSerializationException' the following types will not 
> be 
> considered at the catch site
> D:\Utils\xerces\src\xercesc\internal\XSerializeEngine.hpp(664) : warning 
> C4671: 'XMemory' : the copy constructor is inaccessible
> I'm not sure if it is really safe to ignore this warning ...

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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

Reply via email to