MantisBT - ITK | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0005255 | ITK | public | 2007-06-29 14:46 | 2008-01-25 10:13 | |
Reporter | Mathieu Coursolle | ||||
Assigned To | Mathieu Coursolle | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Resolution Date | |||||
Sprint | |||||
Sprint Status | |||||
Summary | 0005255: Usage of id as a variable name causes error in Objective-C++ projects including some ITK headers. | ||||
Description | Some ITK headers include files that declare variables named "id". "id" is a reserved key-word in Objective-C and Objective-C++ to represent any pointer to an objective-C object. An Objective-C++ application can mix both objective-C and C++ (ex: ITK). Therefore, if an ITK header declares a variable named id, it produces a compiler error when that header is included in an Objective-C++ project. A solution would be to replace all use of the "id" key-word in ITK included files and replace them by some alternative (ex: theId). Example: itkVectorContainer.h includes itkVectorContainer.txx which implements the following: template <typename TElementIdentifier, typename TElement> bool VectorContainer< TElementIdentifier , TElement > ::IndexExists(ElementIdentifier id) const { return (NumericTraits<ElementIdentifier>::IsNonnegative(id) && (id < this->VectorType::size())); } The following error is produced: itkVectorContainer.txx:137: error: cannot find protocol declaration for '' | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2007-08-14 17:14 | Sean McBride | Note Added: 0008464 | |||
2007-08-17 14:19 | Mathieu Coursolle | Note Added: 0008504 | |||
2007-08-23 10:22 | Mathieu Coursolle | Assigned To | Luis Ibanez => Mathieu Coursolle | ||
2007-08-23 10:40 | Mathieu Coursolle | Note Added: 0008613 | |||
2008-01-25 10:13 | Mathieu Coursolle | Status | assigned => resolved | ||
2008-01-25 10:13 | Mathieu Coursolle | Resolution | open => fixed | ||
2008-01-25 10:13 | Mathieu Coursolle | Note Added: 0010297 | |||
2008-01-25 10:13 | Mathieu Coursolle | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|