Certainly, simply:
#define constexpr
will expand constexpr
to nothing. You can wrap this macro definition inside an appropriate #if
for your compiler that doesn't support this.
Sometimes people make the "empty" expansion more explicit:
#define constexpr /* nothing */