Compile error in matchers.cpp and features2d.hpp with Sunpro (Bug #781)


Added by Trevor Clarke about 14 years ago. Updated about 14 years ago.


Status:Done Start date:
Priority:High Due date:
Assignee:Maria Dimashova % Done:

0%

Category:features2d
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

Many files contain "using namespace std;" which is generally a bad thing to do. A specific problem encountered with the Sunpro compiler occurs in matches.cpp (lines 569 and 634) and features2d.hpp (line 2079) where this practice causes a name collision between std::transform() and cv::transform(). The problems can be fixed by changing the lines mentioned (in 2.2.0 release) to std::transform() but the using namespace std; should really be removed from all files.


Associated revisions

Revision 655120fe
Added by Maria Dimashova about 14 years ago

fixed collisions between std::transform() and cv::transform() (#781)

Revision a770d04e
Added by Vadim Pisarevsky almost 12 years ago

Merge pull request #781 from bitwangyaoyao:2.4_fixerr

History

Updated by Maria Dimashova about 14 years ago

Fixed in r4470.

  • Status changed from Open to Done
  • (deleted custom field) set to fixed

Also available in: Atom PDF