Skip to content

Commit 098b84b

Browse files
authored
Merge pull request #24 from bangerth/fix-concept
Fix declaration of the ArgsFlags concept.
2 parents 707af7b + cc3ca60 commit 098b84b

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/OptProcessor.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ auto getTypeCk(const toml::table& tbl, std::string_view key) {
3030
exitWithErr("Incorrect TOML type for {}", key);
3131
#pragma GCC diagnostic pop
3232
}
33-
template<typename T> concept ArgsFlag = requires(T flg) {
34-
std::derived_from<T, args::FlagBase>;
35-
};
33+
template<typename T> concept ArgsFlag = std::derived_from<T, args::FlagBase>;
34+
3635
template<typename T, ArgsFlag F>
3736
auto getOrDefault(F& flg, const toml::table& tbl, std::string_view key, T&& defaultVal) {
3837
if(flg) return flg.Get();
@@ -195,4 +194,4 @@ Opts getOptsOrExit(int argc, const char** argv) {
195194
GET_OR_DEFAULT(tOpts, mi_exportBlockEnd, tConfig, "END_EXPORT");
196195
GET_OR_DEFAULT(tOpts, exportMacrosPath, tConfig, "Export.hpp");
197196
return opts;
198-
}
197+
}

0 commit comments

Comments
 (0)