From 26b73fc09d7eb6bfdadb7f96c68d8a17e2ca1753 Mon Sep 17 00:00:00 2001 From: rexy712 Date: Sat, 15 Aug 2020 13:30:17 -0700 Subject: [PATCH] Update standard with robert's now proposal --- doc/coding_standard.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/coding_standard.txt b/doc/coding_standard.txt index 98c0c00..0d737a8 100644 --- a/doc/coding_standard.txt +++ b/doc/coding_standard.txt @@ -13,6 +13,8 @@ must do's: const wherever possible (const-correctness) pass by pointer or by reference prefer reference over pointer + keep implementation in source files with template and constexpr as exceptions + keep template/constexpr implementations in .tpp files alongside the .hpp files functions: 50 max length comments max 2 lines @@ -76,3 +78,4 @@ no-no's: `class` in template parameter list struct keyword before an object declaration struct game_state* gl; //bad boi + excess include directives