version.h
Go to the documentation of this file.
#ifndef __utl_core_version_h__
#define __utl_core_version_h__
#define UTL_VERSION "0.1.0"
#define UTL_VERSION_MAJOR 0
#define UTL_VERSION_MINOR 1
#define UTL_VERSION_PATCH 0
#define UTL_VERSION_VALUE ( (UTL_VERSION_MAJOR * 10000) \
+ (UTL_VERSION_MINOR * 100) \
+ UTL_VERSION_PATCH)
#define CXX_VER __cplusplus
#define CXX_VER_STD_11 201103L
#define CXX_VER_STD_14 201402L
#define CXX_VER_STD_17 201703L
#ifndef CXX_VARIABLE_TEMPLATES
#ifdef __cpp_variable_templates
#define CXX_VARIABLE_TEMPLATES __cpp_variable_templates
#else
#define CXX_VARIABLE_TEMPLATES (CXX_VER >= CXX_VER_STD_14)
#endif
#endif
#ifndef CXX_CONCEPTS
#ifdef __cpp_concepts
#define CXX_CONCEPTS __cpp_concepts
#else
#define CXX_CONCEPTS 0
#endif
#endif
#ifndef CXX_INLINE_VARIABLES
#ifdef __cpp_inline_variables
#define CXX_INLINE_VARIABLES __cpp_inline_variables
#else
#define CXX_INLINE_VARIABLES (CXX_VER >= CXX_VER_STD_17)
#endif
#endif
#ifndef CXX_FOLD_EXPRESSIONS
#ifdef __cpp_fold_expressions
#define CXX_FOLD_EXPRESSIONS __cpp_fold_expressions
#else
#define CXX_FOLD_EXPRESSIONS (CXX_VER >= CXX_VER_STD_17)
#endif
#endif
/*
* Workaround inspections
*/
#if defined(__GNUC__) && (__GNUC__ < 5)
// https://wg21.link/cwg1558
#define UTL_WORKAROUND_CWG_1558
#endif
#if CXX_VER < CXX_VER_STD_14
#error "uTL requires C++14"
#endif
#endif /* #ifndef __utl_core_version_h__ */