core.hpp problem with C++ CLI (Bug #681)


Added by Georgios Petrou over 14 years ago. Updated over 14 years ago.


Status:Done Start date:
Priority:High Due date:
Assignee:Vadim Pisarevsky % Done:

0%

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

Description

I have a problem with the latest svn version (3946). I am using C++.NET CLI for my project. The use of the word generic in the core.hpp is generating errors when I try to compile my files. The problem occurs with the following lines for example:

enum { generic = 0, depth = DataDepth<channel_type>::value, channels = 4,
fmt = ((channels-1)<<8) + DataDepth<channel_type>::fmt,
type = CV_MAKETYPE(depth, channels) };

I think this happens because the generic word is a keyword and this ultimately causes errors while parsing the file. Is it possible to replace this word with something similar like Generic or _generic?


Associated revisions

Revision fd7b058b
Added by Vadim Pisarevsky over 14 years ago

DataType::generic renamed to DataType::generic_type (ticket #681)

Revision 219bdb98
Added by Vadim Pisarevsky almost 12 years ago

Merge pull request #681 from jbohren-forks:fix-ellipse-segfault

History

Updated by Vadim Pisarevsky over 14 years ago

generic renamed to generic_type in r3954. Please, check it now

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

Also available in: Atom PDF