realm-java icon indicating copy to clipboard operation
realm-java copied to clipboard

Anonymous variadic macros are not part of C++03

Open kspangsege opened this issue 14 years ago • 3 comments

tightdb_java2/tightdb_jni/src/util.hpp defines an anonymous variadic macro. Since they are not part of C++03, we should not use them.

Note: Anonymous variadic macros were introduced in C99 as well as C++11.

kspangsege avatar Aug 16 '12 18:08 kspangsege

These are the macroes I was referring to:

#define TR(fmt, ...) #define TR_ERR(fmt, ...)

kspangsege avatar Aug 16 '12 18:08 kspangsege

Of course, this assumes that the intention is to not allow C++11 in the Java language binding.

kspangsege avatar Aug 16 '12 18:08 kspangsege

Fixed

kspangsege avatar Aug 19 '12 07:08 kspangsege