An open API service indexing awesome lists of open source software.

https://github.com/ignackocom/cppstandards

Cpp Standards
https://github.com/ignackocom/cppstandards

c code mit-license source standard

Last synced: 10 months ago
JSON representation

Cpp Standards

Awesome Lists containing this project

README

          

# CppStandards
Cpp standards

Example of use

```
#if defined(__cplusplus) && __cplusplus == CPP11
...
Cpp 11 code
...
#endif
```

another example

```
#if CPLUSPLUS_VERSION == CPPPRE98
...
CPPPRE98 code
...
#elif CPLUSPLUS_VERSION == CPP98
...
CPP98 code
...
#elif CPLUSPLUS_VERSION == CPP11
...
CPP11 code
...
#else
...
other code
...
#endif
```

another example

```
printf("cpp version = %ld\n", GET_CPLUSPLUS_VERSION());
printf("cpp version year = %ld\n", GET_CPLUSPLUS_VERSION_YEAR());
```

# History of changes ...