[Boost-bugs] [Boost C++ Libraries] #4132: Use of "id" as a variable name makes Boost unusable in Objective-C++

Subject: [Boost-bugs] [Boost C++ Libraries] #4132: Use of "id" as a variable name makes Boost unusable in Objective-C++
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-04-21 11:22:14


#4132: Use of "id" as a variable name makes Boost unusable in Objective-C++
----------------------------------+-----------------------------------------
 Reporter: stokestack@… | Owner: johnmaddock
     Type: Patches | Status: new
Milestone: Boost 1.43.0 | Component: regex
  Version: Boost 1.42.0 | Severity: Problem
 Keywords: Objective-C++ |
----------------------------------+-----------------------------------------
 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.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4132>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC