Compilation error due to missing <functional> (Bug #3505)


Added by kibe kibe about 11 years ago. Updated about 11 years ago.


Status:Done Start date:2014-01-27
Priority:Normal Due date:
Assignee:kibe kibe % Done:

0%

Category:imgproc, video
Target version:3.0
Affected version:branch 'master' (3.0-dev) Operating System:Windows
Difficulty: HW Platform:x86
Pull request:https://github.com/Itseez/opencv/pull/2263

Description

modules/imgproc/src/featureselect.cpp

doesn't include

<functional>

and hence compilation errors are occurred at the following declaration in VC9

struct greaterThanPtr :
        public std::binary_function<const float *, const float *, bool>
{
    bool operator () (const float * a, const float * b) const
    { return *a > *b; }
};

When I added "#include <functional>" into featureselect.cpp, it was compiled correctly.


Associated revisions

Revision 9c81338c
Added by Vadim Pisarevsky about 10 years ago

Merge pull request #3505 from karelknoest:lsd_subpixel

History

Updated by Vladislav Vinogradov about 11 years ago

Hello kibe,

Thank you for reporting the issue!

We would really appreciate if you send a pull request with your fix to the opencv repository.
Please see http://www.code.opencv.org/projects/opencv/wiki/How_to_contribute for instructions.

  • Status changed from New to Open
  • Category set to imgproc, video
  • Assignee set to kibe kibe

Updated by Vladislav Vinogradov about 11 years ago

  • Pull request set to https://github.com/Itseez/opencv/pull/2227

Updated by Vladislav Vinogradov about 11 years ago

  • Status changed from Open to Done
  • Target version set to 3.0
  • Pull request changed from https://github.com/Itseez/opencv/pull/2227 to https://github.com/Itseez/opencv/pull/2263

Also available in: Atom PDF