Hi, I have the following the following piece of code:
const char* known_extensions[] = {
".mia",
".mib",
".mic",
#ifdef TIFF_SUPPORT
".tiff",
".tif",
".TIFF",
".TIF",
#endif
#ifdef PNG_SUPPORT
".png",
".PNG",
#endif
nullptr
};
Is there a way to express this using std::array ? I'd like an easy to way to evaluate the size of the array depending on whether those macros are actually defined.