HomeForumsOpenEars[Resolved] Call to function 'min' that is neither visible in the template…

This topic has 3 voices, contains 3 replies, and was last updated by  Halle 220 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
Author Posts
Author Posts
October 4, 2011 at 5:25 pm #7659

blindcyclists

XCode 4.2 Build 4C177, which is the iOS beta 7 build, spits out a weird C++ template error :

OpenEars/OpenEarsLibrary/../mitlm.0.4/src/KneserNeySmoothing.cpp:37:
../mitlm.0.4/src/vector/Operations.h:101:60: error: call to function ‘min’ that is neither visible in the template definition nor found by argument-dependent lookup [3]

This seems to be a problem with CLANG, I think, the fix is to change the offending line to read :

… return std::min(a, b); … instead of …return min(a, b);…

Hope this helps someone else who is lost.

October 4, 2011 at 5:27 pm #7660

Halle

Thanks!

October 7, 2011 at 9:47 pm #7665

Aleksey

Thank you for that timely tip!

October 11, 2011 at 1:25 pm #7680

Halle

I’ve uploaded version .913 which fixes this issue, thank you for the report and the fix!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.