resolve compiler error in visual c++.

Merged Andi Vajda requested to merge github/fork/kochelmonster/master into master

Created by: kochelmonster

This pull request contains the changes discussed in #98 (closed). Also if it is perfect standard c++, the fact is: msvc does not compile it, and I don't assume Microsoft will change their compiler.

For those who are interested: I was able to compile pyicu with the following conda packages:

  • icu=64.2=he025d50_1
  • vs2017_win-64=19.16.27032.1=hb4161e2_0

Merge request reports