[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

using macro's for functions

From: Bram Neijt
Subject: using macro's for functions
Date: Thu, 27 Sep 2001 14:31:12 +0200 (CEST)

Dear ncurses developer,

Using ncurses I came across the problem of having to deal with the
macro's that curses.h introduces.
My program already contained a function called "refresh()". The problem is
that the refresh macro defined by curses.h can not be contained by a
namespace, thus generating an error inside my class (witch contained the
refresh function).
Undefining, ofcourse, is an option, but to be able to use de refresh
function in another part of the program the macro would have to be

I know that this is not a "bug", but it might be a good idear to use
inline functions instead of macro's, and thus allowing the use of
namspaces and classes containing functions with the same name.

        Bram Neijt

reply via email to

[Prev in Thread] Current Thread [Next in Thread]