twain-samples
twain-samples copied to clipboard
[Bug] Use of untemplated min() is ambiguous [sf#44]
Reported by silvernexus on 2016-02-02 19:56 UTC Use of untemplated min in Twain_App_sample01/src/TwainApp.cpp is ambiguous and creates compiler errors in GCC 4.8.
Use of templated min silences these errors. I made it work by templating to TW_UINT32, but should be tested for good measure on other systems.