Skip to content

TrigConfData: Fix clang compilation.

constexpr auto NIMtypes = { "BCM", "BCMCMB", "LUCID", "ZDC", "BPTX", "CALREQ", "MBTS", "MBTSSI", "NIM" };

is not actually valid c++; it is rejected by clang and gcc 9+. Further, the type of NIMtypes is probably not what you think it should be (it's a std::initializer_list). Also, the way you've written it, each element still gets implicitly converted to a std::string at runtime, so you don't actaully get rid of most of the work.

Change these to static const arrays of std::string. Change from std::any_of to std::find to avoid having to use a lambda. Move the searches of the arrays down to where they're being used (if we returned early, the search was wasted).

Also add a missing override keyword.

Merge request reports