Change phrasing; Fix code formatting
This commit is contained in:
parent
b21d15b981
commit
066bed20c7
@ -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
|
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
|
The code snippet below demonstrates an approach which doesn't require templates
|
||||||
and cleanly separates the verification logic from the rest of the code.
|
and cleanly separates the verification logic from the rest of the code.
|
||||||
@ -62,7 +62,6 @@ public:
|
|||||||
Driver(detail::SettingsChecker settings) : mSettings(settings) {
|
Driver(detail::SettingsChecker settings) : mSettings(settings) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Settings mSettings;
|
Settings mSettings;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user