You are viewing an old version of this page. View the current version.
A feature might be in either the 'Needs validation', 'Allowed' or 'Disallowed' state. The significance of these states are as follows:
- Needs validation
- The feasibility of using the feature in CRYENGINE's code base is yet to be validated by the CRYENGINE Technical Council.
- The feature doesn't introduce 'show-blocking' issues.
- The feature improves, or at least doesn't harm, code runtime and compile time performance.
- The feature improves, or at least doesn't harm, code readability or debugability.
- The feature is supported by all the compilers that the CRYENGINE code base is compiled against.
- The feature introduces a 'show-blocking' issue.
- The feature has a negative impact on runtime and compile time performance.
- The feature has a negative impact on code readability and debugability.
- The feature generally doesn't contribute to the overall quality and performance of the CRYENGINE code base.
- The feature is not supported by a CRYENGINE code base compiler.
C++17 Language Features
|Template argument deduction for class templates||Needs validation||-|
|Declaring non-type template parameters with auto||Needs validation||-|
|Folding expressions||Needs validation||-|
|New rules for auto deduction from braced-init-list||Needs validation||-|
|Constexpr lambda||Needs validation||-|
|Lambda capture this by value||Needs validation||-|
|Inline variables||Needs validation||-|
|Nested namespaces||Allowed||This feature is considered light weight and doesn’t negatively impact code quality or run-time/compile-time performance. It is one of the first C++17 features adopted by compiler vendors, and has therefore been made available even on older tool-chains such as vc140. It is more of a cosmetic feature, since it helps improve readability in nested namespace scenarios.|
|Structured bindings||Needs validation||-|
|Selection statements with initializer||Needs validation||-|
|Constexpr if||Needs validation||The feature greatly simplifies compile-time branching that was only possible through overloading or specialization / SFINAE. It improves compile time and readability. The feature is available on all platforms and compilers (VS2017.3)|
|Utf-8 character literals||Needs validation||-|
|Direct-list-initialization of enums||Needs validation||-|
|New standard attributes||Needs validation||-|
|Terse static_assert||Needs validation|
The terse form of static_assert is useful when the evaluated expression contains enough information that an additional message would be redundant.
Supported by all compilers. (VS2017.0)
static_assert(std::is_default_constructible_v<T>) is equally readable than static_assert(std::is_default_constructible_v<T>, "Must be default constructible")
C++17 Library Features
|std::variant||Disallowed||Not supported on PS4 as of SDK 6.5. Use CryVariant instead.|
|std::optional||Disallowed||Not supported on PS4 as of SDK 6.5. Use stl::optional instead.|
std::void_t, std::conjunction, std::disjunction, std::negation, std::invoke_result, std::is_invocable, std::bool_constant
|Splicing for maps and sets||Needs validation||-|
|Parallel algorithms||Needs validation||-|
C++14 Language Features
|Binary literals||Needs validation||-|
|Generic lambda expressions||Needs validation|
Taking parameters by auto type makes lambda on-par with template functions. It is a great improvement to callbacks and generic algorithms that would be otherwise unnecessarily verbose. It also enables designs such as generic visitor pattern which wasn't possible without the feature.
The feature is supported by all compilers.
|Lambda capture initializers||Needs validation||-|
|Return type deduction||Needs validation||-|
|Relaxing constraints on constexpr functions||Needs validation|
The feature allows constexpr function to be written in almost identical style as normal run-time functions, improving readability and compile time.
Supported by all compilers.
|Variable templates||Needs validation||-|
|[[deprecated]] attribute||Needs validation||-|
C++14 Library Features
On This Page
- No labels