[xsd-users] Re: Problem during compilation of generated files
Boris Kolpackov
boris at codesynthesis.com
Fri Oct 21 10:50:40 EDT 2005
Pradipta,
De, Pradipta <pde at seic.com> writes:
> I go through the code of element.hxx and I found the patch you put is
> the following:
>
> // For Sun C++ 5.6.
> //
> struct dom_info_factory;
> friend struct type::dom_info_factory;
>
> But, dom_info_factory is part of class type and dom_info and
> dom_info_element are also part of same class, so why we require to put
> friend there.
I think it's because Sun C++ 5.6 does not allow nested classes to
access private members of outer class. In 5.7 they changed this, see
http://developers.sun.com/prodtech/cc/documentation/ss10_docs/mr/READMEs/c++.html#new
fourth bullet.
> The error was coming for dom_info and dom_info_element in case of
> create (of element). But, for another create (of attribute) it was
> working fine. Although, both dom_element_info and dom_attribute_info
> were in the same scope.
I think the compiler just stopped compilation at the first function.
hth,
-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20051021/87b32576/attachment.pgp
More information about the xsd-users
mailing list