idealvin / coost

A tiny boost library in C++11.
Other
3.99k stars 562 forks source link

When the coost library is used with opencv3.x-4.x, #374

Open huangzhibear opened 3 days ago

huangzhibear commented 3 days ago

When the coost library is used with opencv3.x-4.x, I don't know what the problem is
error: reference to ‘log’ is ambiguous result += a log(ratio); ^~~ 1

izhengfan commented 3 days ago

try include opencv headers before include coost headers

izhengfan commented 3 days ago

and don't use using namespace std / using namespace cv etc