Would it be possible to support Visual C++ 6?
I know, its rather old - but I still use it and I tried your lib under linux and I think its pretty useful..
i found the problem. it looks like VC6 does not know std::iterator::difference_type would it be possible changing the design to make it working, please?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I don't have Visual C++ 6.0, so I am afraid I can't fix it. However, if the only problem is the lack of std::iterator::difference_type, I guess you can work around it simply by using int instead of it.
Define a preprocessor macro, say utf8_difference_type, and define it as int if _MSC_VER < 1300 and std::iterator::difference_type otherwise. Then just replace every occurence of std::iterator::difference_type with utf8_difference_type in the code.
Hope it helps.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=913231
Originator: YES
i found the problem. it looks like VC6 does not know std::iterator::difference_type would it be possible changing the design to make it working, please?
Logged In: YES
user_id=543698
Originator: NO
I don't have Visual C++ 6.0, so I am afraid I can't fix it. However, if the only problem is the lack of std::iterator::difference_type, I guess you can work around it simply by using int instead of it.
Define a preprocessor macro, say utf8_difference_type, and define it as int if _MSC_VER < 1300 and std::iterator::difference_type otherwise. Then just replace every occurence of std::iterator::difference_type with utf8_difference_type in the code.
Hope it helps.
'fix' for VC6
Logged In: YES
user_id=913231
Originator: YES
Thanks alot! It worked just perfectly :-)
I've attached the edited file - maybe you want to include it (although its just a hack for VC6)
Nicolas
File Added: utf8.h
Logged In: YES
user_id=543698
Originator: NO
Glad to see it worked :)
However, I don't think I am ready to "officially" support VC++ 6.0; as I said, I don't have the compiler.