No more messing around with specific sfinae as<>() in Select implementations

This commit is contained in:
Thomas Krijnen
2026-01-06 11:27:29 +01:00
parent a1d2c902f3
commit ccd91c0ff0
13 changed files with 21102 additions and 14068 deletions
@@ -152,8 +152,9 @@ public:
};
"""
select_list_item = """ template<class T, std::enable_if_t<std::is_same_v<T, %(item_name)s>, int> = 0>
%(item_name)s as() const { return express::Base::as<%(item_name)s>(); }
select_list_item = """ // let's just use the as<>() from Base instead directly...
// template<class T, std::enable_if_t<std::is_same_v<T, %(item_name)s>, int> = 0>
// %(item_name)s as() const { return express::Base::as<%(item_name)s>(); }
"""
select_cast_function = """ %(name)s(const %(item_name)s& c) : express::Select(c) {};