Community
Participate
Working Groups
example: void TestReport::report() const { using std::cout; using std::endl; ... In this case, the second "using" (not the first) causes a "Syntax error" indexer warning. I don't think that's right.
I don't think its the using directive, I think it's something to do with endl.
The problem was with the endl. It was a bug in the implementation of ANSI 7.3.3-5 "A using-declaration shall not name a template-id". (endl is a template function, but not in this case a template-id, which would look something like endl<int>) I've also fixed the error reporting around using declarations so when there is an error it will be "Invalid using directive/declaration" instead of the generic syntax error. Fix applied to HEAD and will be propagated to 2.0.1 branch at a later date.
fix is now in 2.0.1