Click here to Skip to main content
15,914,070 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: diamond problem and virtual inheritance Pin
George_George22-Sep-08 20:49
George_George22-Sep-08 20:49 
GeneralRe: diamond problem and virtual inheritance Pin
SandipG 22-Sep-08 21:07
SandipG 22-Sep-08 21:07 
GeneralRe: diamond problem and virtual inheritance Pin
George_George22-Sep-08 21:26
George_George22-Sep-08 21:26 
GeneralRe: diamond problem and virtual inheritance Pin
SandipG 22-Sep-08 21:30
SandipG 22-Sep-08 21:30 
GeneralRe: diamond problem and virtual inheritance Pin
George_George22-Sep-08 21:34
George_George22-Sep-08 21:34 
GeneralRe: diamond problem and virtual inheritance Pin
SandipG 22-Sep-08 21:37
SandipG 22-Sep-08 21:37 
GeneralRe: diamond problem and virtual inheritance Pin
George_George22-Sep-08 21:39
George_George22-Sep-08 21:39 
QuestionRe: diamond problem and virtual inheritance Pin
laksh220422-Sep-08 23:03
laksh220422-Sep-08 23:03 
I have some queries here..

1. By making the inheritance virtual how the ambiguity is actually resolved?
I mean, what this virtual inheritance does internally? Does it create another vptr of another vtable?
if it is so how does the new vtable looks like??

2. And as the diamond problem says that there is an ambiguity that whether D will have path
A->B->D
or
A->C->D


A
/ \
B C
\ /
D

So after removing ambiguity which path is taken?
QuestionIs there any memory leak in this code? Pin
SRKSHOME22-Sep-08 19:33
SRKSHOME22-Sep-08 19:33 
AnswerRe: Is there any memory leak in this code? Pin
User 21559722-Sep-08 19:53
User 21559722-Sep-08 19:53 
GeneralRe: Is there any memory leak in this code? Pin
SRKSHOME22-Sep-08 20:49
SRKSHOME22-Sep-08 20:49 
GeneralRe: Is there any memory leak in this code? Pin
User 21559722-Sep-08 21:46
User 21559722-Sep-08 21:46 
AnswerRe: Is there any memory leak in this code? Pin
Sarath C22-Sep-08 20:46
Sarath C22-Sep-08 20:46 
GeneralRe: Is there any memory leak in this code? Pin
SRKSHOME22-Sep-08 20:53
SRKSHOME22-Sep-08 20:53 
Questionproblem in copy .exe file Pin
vcprog22-Sep-08 18:56
vcprog22-Sep-08 18:56 
AnswerRe: problem in copy .exe file Pin
_AnsHUMAN_ 22-Sep-08 19:01
_AnsHUMAN_ 22-Sep-08 19:01 
GeneralRe: problem in copy .exe file Pin
vcprog22-Sep-08 19:22
vcprog22-Sep-08 19:22 
AnswerRe: problem in copy .exe file Pin
Hamid_RT22-Sep-08 19:34
Hamid_RT22-Sep-08 19:34 
GeneralRe: problem in copy .exe file Pin
vcprog22-Sep-08 19:38
vcprog22-Sep-08 19:38 
GeneralRe: problem in copy .exe file Pin
Mahesh Kulkarni22-Sep-08 19:49
Mahesh Kulkarni22-Sep-08 19:49 
GeneralRe: problem in copy .exe file Pin
Hamid_RT22-Sep-08 19:50
Hamid_RT22-Sep-08 19:50 
QuestionRe: problem in copy .exe file Pin
Rajesh R Subramanian22-Sep-08 19:44
professionalRajesh R Subramanian22-Sep-08 19:44 
AnswerRe: problem in copy .exe file Pin
vcprog22-Sep-08 19:47
vcprog22-Sep-08 19:47 
GeneralRe: problem in copy .exe file Pin
Rajesh R Subramanian22-Sep-08 19:56
professionalRajesh R Subramanian22-Sep-08 19:56 
GeneralRe: problem in copy .exe file Pin
vcprog22-Sep-08 20:19
vcprog22-Sep-08 20:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.