From 03535e6a10ea9fafc2e29be268b8a8b2778ba530 Mon Sep 17 00:00:00 2001 From: LC Date: Sat, 5 Dec 2020 07:21:08 -0500 Subject: [PATCH] Lessen restrictions on const_cast. Some C and C++ external libraries may have const-incorrect APIs that necessitate it. --- Contributing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Contributing.md b/Contributing.md index cb6ccfc..7102c7f 100644 --- a/Contributing.md +++ b/Contributing.md @@ -22,7 +22,7 @@ If clang format is found, then cmake will add a custom build target that can be * Don't ever introduce new external dependencies into Core * Don't use any platform specific code in Core * Use namespaces often -* Avoid the use of C-style casts and instead prefer C++-style `static_cast` and `reinterpret_cast`. Try to avoid using `dynamic_cast`. Never use `const_cast`. +* Avoid the use of C-style casts and instead prefer C++-style `static_cast` and `reinterpret_cast`. Try to avoid using `dynamic_cast`. Never use `const_cast`, except when dealing with external const-incorrect APIs. ### Naming Rules * Functions: `PascalCase`