| Summary: | Invalid overload for templated argument | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Marc-André Laperle <malaperle> | ||||
| Component: | cdt-parser | Assignee: | Markus Schorn <mschorn.eclipse> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Mike Kucera <mikekucera> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 8.0 | ||||||
| Target Milestone: | 8.0 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Using CDT 8.0 (201009161207) #include <vector> #include <algorithm> using namespace std; template<typename T> bool MySort(const T& a, const T& b) { return(true); } int main() { vector<int> test; sort(test.begin(), test.end(), MySort<int>); return 0; } MySort<int> generates an error (codan) "Invalid overload". This is not the case in 7.0 (using Problems syntax coloring). Maybe this is caused by the fix in bug 85843?