From 066bed20c77a841271122eaa581eed842e3fff02 Mon Sep 17 00:00:00 2001 From: "an.tsouchlos" Date: Mon, 14 Apr 2025 13:37:02 +0000 Subject: [PATCH] Change phrasing; Fix code formatting --- cpp/compile-time-settings-check.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cpp/compile-time-settings-check.md b/cpp/compile-time-settings-check.md index 7f5742d..dc811a5 100644 --- a/cpp/compile-time-settings-check.md +++ b/cpp/compile-time-settings-check.md @@ -1,6 +1,6 @@ -It is sometimes useful to be able to verify that certain settings are valid, at +It is sometimes useful to be able to verify that certain settings are valid at compile time. An easy approach to do this is to pass the settings as non-type -template parameters and use `static_assert()`. +template arguments and use `static_assert()`. The code snippet below demonstrates an approach which doesn't require templates and cleanly separates the verification logic from the rest of the code. @@ -62,7 +62,6 @@ public: Driver(detail::SettingsChecker settings) : mSettings(settings) { } - private: Settings mSettings; };