[xsd-users] Fwd: Error using Xerces type with C++11

rogerps rogerps at tecgraf.puc-rio.br
Tue Dec 23 11:41:43 EST 2014


Hi People,

I'm using CS in my project with another lib called Reflex to generate a 
dictionary for CS code. But I'm having problems to use it with VS2013 
(C++11).

The Reflex generate a use of xsd::cxx::tree::sequence_common::ptr 
(declared in containers.hxx) with std::_Vector_const_iterator.
std::_Vector_const_iterator ask for some declarations in 
sequence_common::ptr type as value_type, difference_type, etc.

Can someone help me on how to change sequence_common::ptr type to this 
code compile?

[]s,
Rogério Pinheiro


This is a sample of error list shown by the VS2013:

2>C:\Program Files (x86)\Microsoft Visual Studio 
12.0\VC\include\vector(24): error C2039: 'value_type' : is not a member 
of 'xsd::cxx::tree::sequence_common::ptr'
2>          
D:\projects\galileu\gxml\gxml_cmake\src\core\cs\xsd/cxx/tree/containers.hxx(538) 
: see declaration of 'xsd::cxx::tree::sequence_common::ptr'
2>          C:\Program Files (x86)\Microsoft Visual Studio 
12.0\VC\include\xutility(371) : see reference to class template 
instantiation 
'std::_Vector_const_iterator<xsd::cxx::tree::sequence_common::ptr>' 
being compiled
2>          d:\SDK\gxml_depends\CodeSynthesis XSD 
4.0\include\xsd/cxx/tree/iterator-adapter.hxx(28) : see reference to 
class template instantiation 'std::iterator_traits<I>' being compiled
2>          with
2>          [
2>              
I=std::_Vector_const_iterator<xsd::cxx::tree::sequence_common::ptr>
2>          ]
2>          d:\SDK\gxml_depends\CodeSynthesis XSD 
4.0\include\xsd/cxx/tree/iterator-adapter.hxx(75) : see reference to 
class template instantiation 'xsd::cxx::tree::iterator_traits<I>' being 
compiled
2>          with
2>          [
2>              
I=std::_Vector_const_iterator<xsd::cxx::tree::sequence_common::ptr>
2>          ]
2>          GXML-AnalysisParameters_rflx.cpp(31876) : see reference to 
class template instantiation 
'xsd::cxx::tree::iterator_adapter<std::_Vector_const_iterator<xsd::cxx::tree::sequence_common::ptr>,const 
GALILEU::tSituaGlobalAnalysisParameter>' being compiled
2>C:\Program Files (x86)\Microsoft Visual Studio 
12.0\VC\include\vector(24): error C2146: syntax error : missing ',' 
before identifier 'value_type'
2>C:\Program Files (x86)\Microsoft Visual Studio 
12.0\VC\include\vector(24): error C2065: 'value_type' : undeclared 
identifier
2>C:\Program Files (x86)\Microsoft Visual Studio 
12.0\VC\include\vector(25): error C2039: 'difference_type' : is not a 
member of 'xsd::cxx::tree::sequence_common::ptr'
2>          
D:\projects\galileu\gxml\gxml_cmake\src\core\cs\xsd/cxx/tree/containers.hxx(538) 
: see declaration of 'xsd::cxx::tree::sequence_common::ptr'
2>C:\Program Files (x86)\Microsoft Visual Studio 
12.0\VC\include\vector(25): error C2146: syntax error : missing ',' 
before identifier 'difference_type'
2>C:\Program Files (x86)\Microsoft Visual Studio 
12.0\VC\include\vector(25): error C2065: 'difference_type' : undeclared 
identifier
2>C:\Program Files (x86)\Microsoft Visual Studio 
12.0\VC\include\vector(26): error C2039: 'const_pointer' : is not a 
member of 'xsd::cxx::tree::sequence_common::ptr'
2>          
D:\projects\galileu\gxml\gxml_cmake\src\core\cs\xsd/cxx/tree/containers.hxx(538) 
: see declaration of 'xsd::cxx::tree::sequence_common::ptr'
2>C:\Program Files (x86)\Microsoft Visual Studio 
12.0\VC\include\vector(26): error C2146: syntax error : missing ',' 
before identifier 'const_pointer'
2>C:\Program Files (x86)\Microsoft Visual Studio 
12.0\VC\include\vector(26): error C2065: 'const_pointer' : undeclared 
identifier
2>C:\Program Files (x86)\Microsoft Visual Studio 
12.0\VC\include\vector(27): error C2039: 'const_reference' : is not a 
member of 'xsd::cxx::tree::sequence_common::ptr'
2>          
D:\projects\galileu\gxml\gxml_cmake\src\core\cs\xsd/cxx/tree/containers.hxx(538) 
: see declaration of 'xsd::cxx::tree::sequence_common::ptr'
2>C:\Program Files (x86)\Microsoft Visual Studio 
12.0\VC\include\vector(27): error C2146: syntax error : missing ',' 
before identifier 'const_reference'
2>C:\Program Files (x86)\Microsoft Visual Studio 
12.0\VC\include\vector(27): error C2065: 'const_reference' : undeclared 
identifier
2>C:\Program Files (x86)\Microsoft Visual Studio 
12.0\VC\include\vector(28): error C2977: 'std::_Iterator012' : too many 
template arguments



More information about the xsd-users mailing list