Fraser Ross
2008-07-04 13:59:07 UTC
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.
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.