Remove obsolete todo

This commit is contained in:
Gunter Labes 2023-01-12 18:01:34 +01:00 committed by GitHub
parent 4fd3bc565c
commit 7ca149ef78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -576,10 +576,9 @@ public:
std::unique_ptr<wfl::formula> formula_;
};
// todo: maybe invent a gerneral macro for this string_switch implementation.
// todo: maybe invent a general macro for this string_switch implementation.
enum filter_keys { F_AND, F_OR, F_NAND, F_NOR, F_X, F_Y, F_FIND_IN, F_ADJACENT, F_TERRAIN, F_RADIUS, F_FORMULA, F_CACHED };
//todoc++14: std::unordered_map doesn'tsupport herterogrnous lookup.
//todo consider renaming and -> all ,or ->any, nor -> none, nand -> notall
// todo: c++20: perhaps enable heterogenous lookup.
static const std::unordered_map<std::string, filter_keys> keys {
{ "all", F_AND },
{ "any", F_OR },