Modify

Opened 7 years ago

Closed 7 years ago

#4132 closed Patches (fixed)

Use of "id" as a variable name makes Boost unusable in Objective-C++

Reported by: stokestack@… Owned by: johnmaddock
Milestone: Boost 1.43.0 Component: regex
Version: Boost 1.42.0 Severity: Problem
Keywords: Objective-C++ Cc:

Description

I included a C++ object in an Objective-C++ file and compilation failed with "Expected primary-expression before..." It turns out that two relevant files were using "id" as a variable name. "id" is a keyword in Objective-C++.

Changing the variable name to "idx" (which appears to be more descriptive of its use anyway) eliminated the error.

Patch attached.

Attachments (1)

patchfile.patch (2.9 KB) - added by Gavin Stokes <stokestack@…> 7 years ago.
patch to basic_regex_creator.hpp and perl_matcher_common.hpp

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by Gavin Stokes <stokestack@…>

patch to basic_regex_creator.hpp and perl_matcher_common.hpp

comment:1 Changed 7 years ago by johnmaddock

  • Resolution set to fixed
  • Status changed from new to closed

(In [61789]) Change "id" to "idx" to be Objective C++ compatible. Fixes #2306. Fixes #4132. Fixes #4191.

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain johnmaddock.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.