mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-08 18:52:50 -06:00
a refactoring to make it easier to use C++ closures
This commit is contained in:
@@ -658,7 +658,7 @@ void namespace_iter_prefix(Namespace<V> map, PgfText *prefix, PgfItor* itor, Pgf
|
||||
}
|
||||
|
||||
template <class V>
|
||||
Namespace<V> namespace_map(Namespace<V> map, std::function<ref<V>(ref<V>)> f)
|
||||
Namespace<V> namespace_map(Namespace<V> map, std::function<ref<V>(ref<V>)> &f)
|
||||
{
|
||||
if (map != 0) {
|
||||
auto left = namespace_map(map->left, f);
|
||||
|
||||
Reference in New Issue
Block a user