[Home]

Summary:ASTERISK-09925: Use of reserved C++ terms
Reporter:Oskar Senft (osk)Labels:
Date Opened:2007-07-22 11:54:16Date Closed:2007-07-22 16:24:54
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:In Asterisk 1.2.22 the app.h header file uses a reserved C++ terms (like new, delete, ...). This causes problems when using a C++ compiler for modules written in C++.

A similar problem has already been fixed in SVN (issue 9830).

app.h
int ast_app_group_update(struct ast_channel *old, struct ast_channel *new);

The solution is to simply rename "old" -> "oldchan" and "new" -> "newchan".
Comments:By: Digium Subversion (svnbot) 2007-07-22 16:22:48

Repository: asterisk
Revision: 76409

------------------------------------------------------------------------
r76409 | tilghman | 2007-07-22 16:22:47 -0500 (Sun, 22 Jul 2007) | 2 lines

We should not use C++ reserved words in API headers (closes issue ASTERISK-9925)

------------------------------------------------------------------------

By: Digium Subversion (svnbot) 2007-07-22 16:24:54

Repository: asterisk
Revision: 76410

------------------------------------------------------------------------
r76410 | tilghman | 2007-07-22 16:24:53 -0500 (Sun, 22 Jul 2007) | 9 lines

Blocked revisions 76409 via svnmerge

........
r76409 | tilghman | 2007-07-22 16:39:55 -0500 (Sun, 22 Jul 2007) | 2 lines

We should not use C++ reserved words in API headers (closes issue ASTERISK-9925)

........

------------------------------------------------------------------------