Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~269 People Reached
Favorite Forums
Favorite Tags
Member Avatar for bil050

Hi, How can I define template formal parameter as T*? I read in some textbook that if I define template with formal parameter T* then actual parameter can be of the type T1*,provided that T1 is derived from T Thank you in advance

Member Avatar for mrnutty
0
99
Member Avatar for bil050

struct A { virtual A* f() { return this; } }; struct B: virtual A { B* f() { return this; } }; The GNU compiler gives an error: sorry, unimplemented: adjusting pointers for covariant returns What is the problem?

0
46
Member Avatar for bil050

I have a following code struct A { int x; A(int i) : x(i) {} virtual void a() {}; }; struct B: virtual A { B() : A(0) {} virtual void a(){} }; struct C: A, virtual B { virtual void a(){} virtual void c(){} }; The following code fails …

Member Avatar for kvprajapati
0
124