twain-samples icon indicating copy to clipboard operation
twain-samples copied to clipboard

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

Open kolomiets opened this issue 7 years ago • 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.

kolomiets avatar Apr 05 '17 10:04 kolomiets