Menu

#3 Visual C++ 6 support

closed
nobody
None
5
2007-01-16
2007-01-06
Nicolas
No

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..

Discussion

  • Nicolas

    Nicolas - 2007-01-10

    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?

     
  • Nemanja Trifunovic

    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.

     
  • Nicolas

    Nicolas - 2007-01-15

    'fix' for VC6

     
  • Nicolas

    Nicolas - 2007-01-15

    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

     
  • Nemanja Trifunovic

    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.

     
  • Nemanja Trifunovic

    • status: open --> closed