Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hallo!
I am novice in C++. Occasionaly I got a program for Visual Studio2005, using pugxml.h wich works perfect.
After trying to construct it in Visual Studio 2010 I obtain next error:
1> pugxml.h(1818): error C2143: syntax error absence of "," before "<"
for code
1817 template < class _Ty,class _Diff,class _Pointer,class _Reference>

1818 class xml_iterator:public std :: _Ranit <_Ty, _Diff, _Pointer, _Reference>


Could You help me?
Thank You in advance.
Sergey Travin
email: travinso@yandex.ru
Posted

Hi Sergey,

It's already a long time since you made this question, but I'll answer anyway cause it can help other people.

Inside the file pugxml.h, make the following change !!!

// From:
class xml_iterator : public std::_Ranit<_Ty,_Diff,_Pointer,_Reference>

// To:
class xml_iterator : public std::iterator<std::input_iterator_tag, _Ty, _Diff, _Pointer, _Reference>


Regards,
WLRoger
 
Share this answer
 
No guarantees that this is going to work, but try defining _HAS_CPP0X=0 in the project's compiler definitions.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900