Discussion:
member template and using declaration
(too old to reply)
Fraser Ross
2008-07-04 13:59:07 UTC
Permalink
Normal function names are ok but member template names appear to have a
compiler bug with BDS2006. The compiler says that W is inaccessible.


class S {
protected:
template <typename Char_tp>
void W(std::vector<Char_tp> const &t) {
}
};



class St : public S {
public:
using S::W;
St() {}
};


#pragma argsused
int main() {
unsigned char const text[]= "123456789";
St o;
o.W(std::vector<unsigned char>(text, text + 9));
return 0;
}



Fraser.
Leo Siefert
2008-07-07 13:11:12 UTC
Permalink
Report No: 64110 Status: Open
Using declaration for member template fails
http://qc.codegear.com/wc/qcmain.aspx?d=64110
QCWIN:Defect_No=64110

This is a duplicate of a previously filed report, but that report was
Closed. I marked your report as a duplicate and reopened the dup. I
also sent a note to David Dean to try to get some attention to the
issue.

- Leo

Loading...