def METHOD_NAME(self):
    if self.real_version < Version("11.0"):
        raise spack.compiler.UnsupportedCompilerFlag(
            self, "the C++23 standard", "cxx23_flag", "< 11.0"
        )
    elif self.real_version < Version("14.0"):
        return "-std=c++2b"
    else:
        return "-std=c++23"