From here (https://developer.android.com/ndk/guides/cpp-support), it looks like Android NDK r18 provided support for C++17. The examples though on the page only show how to enable it for the ndk build script approach. My project is using CMake.
I tried the approach outlined here which is not android specific (How to enable C++17 in CMake) but I was getting compilation errors indicating that my compiler is unable to set the standard to 17.
Is anyone aware on how to do this?