private template members
hunt0r
nomail at nowhere.com
Sun May 1 02:37:08 PDT 2011
hi,
It seems that template members of a class are always public.
having a class like:
class Test
{
private:
int x;
template test(T)
{
void test(T t) {x= 100;}
}
public:
int getX() {return x;}
}
and calling:
Test t = new Test;
t.test();
prints 100 instead of saying that the member test is not accessable.
Is it not possible to get private template members with D?
More information about the Digitalmars-d-learn
mailing list