[OpenSIPS-Devel] Name conflicts

Tiberius Duluman tiberius.duluman at iquestint.com
Thu Nov 11 13:44:08 CET 2010


While trying to develop new modules for opensips using C++ I have encountered following problems:

1. In file db/db.h
typedef struct db_func {
[...]
db_delete_f       delete;        /* Delete from table */

This conflicts with the delete operator from C++.

2. resolve.h
struct rdata {
[...]
unsigned short class;

class is a reserved keyword in C++.

3. modules/unix_odbc/con.h con.c
It is imposible to checkout this module in Windows, as con is a reserved filename.

4. parser/parse_def.h
#define PARSE_ERROR -1
conflicts with boost/date_time/string_parse_tree.hpp
enum PARSE_STATE { PARSE_ERROR= -1 };

You may use:

static const int PARSE_ERROR = -1;
static const int PARSE_OK = 1;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20101111/8169dc0e/attachment.htm>


More information about the Devel mailing list