A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bytedeco/javacpp-presets/issues/1051 below:

How to deal with template taking std::function as arguments? · Issue #1051 · bytedeco/javacpp-presets · GitHub

    template <typename T>
    void set_filter(T &&func) {
       // ...
    }

T's receiver is std::function<bool(uint64_t)>.

We tried to add the following mapping info

        infoMap.put(new Info("std::function<bool(uint64_t)>").pointerTypes("FilterFunction"));
        infoMap.put(new Info("SomeClass::set_filter<std::function<bool(uint64_t)> >&&").javaNames("setFiler"));

mvn install works but the function is omitted from generated java file.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4