twain/twain-samples

[Bug] Use of untemplated min() is ambiguous [sf#44]

Opened this issue · 0 comments

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.