Extending wxUniChar to Support Additional Types
|Reported by:||ByteMonk||Owned by:||vadz|
The wxUniChar class needs to be extended to support the following types:
long long int
unsigned long long
The need for the long long int type was discovered when I attempted to use a CPPUnit and Google Mock-based test harness that referenced wxString. The test harness would not compile and generated this error in a Google Test header file:
"conversion from const wxUniChar' to long long int' is ambiguous"
Adding long long int to the constructor and various operators made the error go away. Context for the issue can be found here:
Based on conversations with one of the wxWidgets developers I also included support for the unsigned long long type as part of this patch.