Function Macro

GLibCXX_STD_CHECK_VERSION

since: 2.76

Declaration [src]

#define G_CXX_STD_CHECK_VERSION (
  version
)

Description [src]

Macro to check if the current compiler supports a specified version of the C++ standard. Such value must be numeric and can be provided both in the short form for the well-known versions (e.g. 11, 17…) or in the complete form otherwise (e.g. 201103L, 201703L, 205503L…).

When a C compiler is used, the macro is defined and returns always FALSE.

This value is compared against G_CXX_STD_VERSION.

#if G_CXX_STD_CHECK_VERSION(20)
#endif

See also: G_C_STD_CHECK_VERSION.

Available since: 2.76

This function is not directly available to language bindings.

Parameters

version

Type: -

The C++ version to be checked for compatibility.