#415 PTLIB build failed (PXMLElement) on rev. 29014

Development_Branch
closed-fixed
PTLib (141)
5
2013-01-28
2013-01-28
No

MSVC2008:
Error PTLib Static 1 error C2535: 'PXMLObject *PXMLElement::GetSubObject(int) const' : member function already defined or declared d:\richcall\trunk\commonlibs\ptlib\include\ptclib\pxml.h 452
Error PTLib Static 2 error C2535: 'PXMLObject *PXMLElement::GetSubObject(int) const' : member function already defined or declared d:\richcall\trunk\commonlibs\ptlib\include\ptclib\pxml.h 452
Error PTLib Static 3 error C2535: 'PXMLObject *PXMLElement::GetSubObject(int) const' : member function already defined or declared d:\richcall\trunk\commonlibs\ptlib\include\ptclib\pxml.h 452
Error PTLib Static 4 error C2535: 'PXMLObject *PXMLElement::GetSubObject(int) const' : member function already defined or declared d:\richcall\trunk\commonlibs\ptlib\include\ptclib\pxml.h 452
Error PTLib Static 5 error C2535: 'PXMLObject *PXMLElement::GetSubObject(int) const' : member function already defined or declared d:\richcall\trunk\commonlibs\ptlib\include\ptclib\pxml.h 452
Error PTLib Static 6 error C2535: 'PXMLObject *PXMLElement::GetSubObject(int) const' : member function already defined or declared d:\richcall\trunk\commonlibs\ptlib\include\ptclib\pxml.h 452
Error PTLib Static 7 error C2535: 'PXMLObject *PXMLElement::GetSubObject(int) const' : member function already defined or declared d:\richcall\trunk\commonlibs\ptlib\include\ptclib\pxml.h 452
Error PTLib Static 8 error C2535: 'PXMLObject *PXMLElement::GetSubObject(int) const' : member function already defined or declared d:\richcall\trunk\commonlibs\ptlib\include\ptclib\pxml.h 452

There are two declarations:

PXMLObject * GetSubObject(PINDEX idx) const;

and

PXMLObject * GetSubObject(PINDEX idx = 0) const
{ return GetElement(idx); }

Discussion

  • Patch applied to SVN trunk, thank you very much!

     
    • assigned_to: nobody --> csoutheren
    • status: open --> closed-fixed
     
  • Now fixed.
    Thanks for taking the time to enter this into the bug tracker!