Closed dedmen closed 5 years ago
Good catch! I should add a note in the documentation to enforce the usage of releases or tagged version.
The current master branch has been modified recently and has not been tested yet in all the different platform.
In this case, probably the easiest solution is to avoid auto and replace it by a simple unsigned type, maybe unsigned long or unsigned int.
The problem has been fixed in this commit. I compiled the code with the latest MVSC in x86 and x64 platforms in Windows 8 and Windows 10.
Could you confirm that the latest state compiles properly @dedmen ?
Confirmed, all good now. Didn't notice any problems on master branch. Win 8.1 and Win10 x64.
Visual Studio 2019 with C++17.
https://github.com/mohabouje/WinToast/blob/master/src/wintoastlib.cpp#L650
auto
deduces tounsigned int
, and textFieldsCount returnssize_t
which isunsigned __int64
on 64bit. I fixed it by replacing0u
with0ull
but that only works because I build x64 only. On 32bit that would missmatch again.