Skip to content

RdbxRespWriter's delete member uses a reserved c++ keyword #84

@sjperkins

Description

@sjperkins

From the header definition:

librdb/api/librdb-ext-api.h

Lines 225 to 238 in 7adff13

typedef struct RdbxRespWriter {
void *ctx;
void (*delete)(void *ctx);
/* return 0 on success. Otherwise 1 */
int (*writev) (void *ctx,
struct iovec *ioVec, /* Standard C scatter/gather IO array */
int iovCnt, /* Number of iovec elements */
RdbxRespWriterStartCmd *startCmd, /* If start of RESP command then not NULL. Owned by
* the caller. Valid for the duration of the call. */
int endCmd); /* 1, if this is end of RESP command, 0 otherwise */
int (*flush) (void *ctx);
} RdbxRespWriter;

Using delete as a member name makes it difficult to use librdb in C++ projects, although patching is a viable workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions