What are the C++ 03 Macros? -
i'm trying compile library using -std=c++03, compilation failing because nullptr_t not defined.
how can guarantee c++03 instead of c++11 compilation using hard-coded macro?
thanks in advance.
the version detection present in standard value of macro __cplusplus: 201103 c++11 (iso/iec 14882-2011 §16.8/1) , 199711 c++98 (iso/iec 14882-1998 §16.8/1). c++03 didn't apparently deserve own number , uses 199711 (iso/iec 14882-2003 §16.8/1). if seems inadequate means of feature detection, you're not alone.
in case, need consult documentation of library in question determine how configure pre-c++11 if such possible.
Comments
Post a Comment