mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
No more messing around with specific sfinae as<>() in Select implementations
This commit is contained in:
@@ -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) {};
|
||||
|
||||
Reference in New Issue
Block a user