This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | function<...> can not be refactored | ||
---|---|---|---|
Product: | cnd | Reporter: | soldatov <soldatov> |
Component: | Code Model | Assignee: | petrk |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Solaris | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
soldatov
2015-01-23 14:29:50 UTC
This sample can be compiled via Oracle Solaris Studio too: #include <functional> #include <iostream> using namespace std; void scan(int length, std::function<void()> process ) { for(int i=0; i<length; i++) { process(); } } int main() { std::function<void()> lll = []()->void { cout << "ok" << endl; }; scan(10, lll); lll(); return 0; } |