has_feature_cxx0x.cpp [plain text]
#if __has_feature(cxx_atomic)
int has_atomic();
#else
int no_atomic();
#endif
#if __has_feature(cxx_lambdas)
int has_lambdas();
#else
int no_lambdas();
#endif
#if __has_feature(cxx_nullptr)
int has_nullptr();
#else
int no_nullptr();
#endif
#if __has_feature(cxx_decltype)
int has_decltype();
#else
int no_decltype();
#endif
#if __has_feature(cxx_decltype_incomplete_return_types)
int has_decltype_incomplete_return_types();
#else
int no_decltype_incomplete_return_types();
#endif
#if __has_feature(cxx_auto_type)
int has_auto_type();
#else
int no_auto_type();
#endif
#if __has_feature(cxx_trailing_return)
int has_trailing_return();
#else
int no_trailing_return();
#endif
#if __has_feature(cxx_attributes)
int has_attributes();
#else
int no_attributes();
#endif
#if __has_feature(cxx_static_assert)
int has_static_assert();
#else
int no_static_assert();
#endif
#if __has_feature(cxx_deleted_functions)
int has_deleted_functions();
#else
int no_deleted_functions();
#endif
#if __has_feature(cxx_defaulted_functions)
int has_defaulted_functions();
#else
int no_defaulted_functions();
#endif
#if __has_feature(cxx_rvalue_references)
int has_rvalue_references();
#else
int no_rvalue_references();
#endif
#if __has_feature(cxx_variadic_templates)
int has_variadic_templates();
#else
int no_variadic_templates();
#endif
#if __has_feature(cxx_inline_namespaces)
int has_inline_namespaces();
#else
int no_inline_namespaces();
#endif
#if __has_feature(cxx_range_for)
int has_range_for();
#else
int no_range_for();
#endif
#if __has_feature(cxx_reference_qualified_functions)
int has_reference_qualified_functions();
#else
int no_reference_qualified_functions();
#endif
#if __has_feature(cxx_default_function_template_args)
int has_default_function_template_args();
#else
int no_default_function_template_args();
#endif
#if __has_feature(cxx_noexcept)
int has_noexcept();
#else
int no_noexcept();
#endif
#if __has_feature(cxx_override_control)
int has_override_control();
#else
int no_override_control();
#endif
#if __has_feature(cxx_alias_templates)
int has_alias_templates();
#else
int no_alias_templates();
#endif
#if __has_feature(cxx_implicit_moves)
int has_implicit_moves();
#else
int no_implicit_moves();
#endif
#if __has_feature(cxx_alignas)
int has_alignas();
#else
int no_alignas();
#endif
#if __has_feature(cxx_raw_string_literals)
int has_raw_string_literals();
#else
int no_raw_string_literals();
#endif
#if __has_feature(cxx_unicode_literals)
int has_unicode_literals();
#else
int no_unicode_literals();
#endif
#if __has_feature(cxx_constexpr)
int has_constexpr();
#else
int no_constexpr();
#endif
#if __has_feature(cxx_generalized_initializers)
int has_generalized_initializers();
#else
int no_generalized_initializers();
#endif
#if __has_feature(cxx_unrestricted_unions)
int has_unrestricted_unions();
#else
int no_unrestricted_unions();
#endif
#if __has_feature(cxx_user_literals)
int has_user_literals();
#else
int no_user_literals();
#endif
#if __has_feature(cxx_local_type_template_args)
int has_local_type_template_args();
#else
int no_local_type_template_args();
#endif