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: | In code completion is missing command "endl" (without any parenthesis) | ||
---|---|---|---|
Product: | cnd | Reporter: | Martin Fousek <marfous> |
Component: | Code Completion | Assignee: | nnnnnk <nnnnnk> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | Keywords: | USABILITY |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Martin Fousek
2008-08-28 07:27:57 UTC
I'd like to clarify, that endl is really the function from std namespace, so may be displaying endl() in popup list is correct. The incorrect behavior is that choosing endl() in list produces incorrect code std::cout << std::endl() instead of std::cout << std::endl So, I would suggest to fix the problem by inserting endl without () when it is after "<<" operator What do you think? P.S. the critical part here is the overridden operator "<<" which takes names of function as it's parameter, so we should insert only name of function and not function call in such a case. Verified in NetBeans IDE Dev (Build 200809220201). |