Click here to Skip to main content
15,910,009 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: urgent Pin
Naveen17-Mar-08 21:21
Naveen17-Mar-08 21:21 
GeneralRe: urgent Pin
john563217-Mar-08 22:50
john563217-Mar-08 22:50 
GeneralRe: urgent Pin
Naveen17-Mar-08 23:29
Naveen17-Mar-08 23:29 
GeneralRe: urgent Pin
john563218-Mar-08 0:08
john563218-Mar-08 0:08 
GeneralRe: urgent Pin
Naveen18-Mar-08 0:19
Naveen18-Mar-08 0:19 
GeneralRe: urgent Pin
john563218-Mar-08 0:29
john563218-Mar-08 0:29 
GeneralRe: urgent Pin
fat_boy18-Mar-08 2:47
fat_boy18-Mar-08 2:47 
GeneralInheritance in Pimpl idiom Pin
George_George17-Mar-08 19:31
George_George17-Mar-08 19:31 
Hello everyone,


Why it is useless for any inheritance in Pimpl idiom? Here is the source, but no detailed reasons are provided.

http://www.gotw.ca/gotw/024.htm

--------------------
- make XImpl entirely the class that X would have been, and write X as only the public interface made up entirely of simple forwarding functions (a handle/body variant).

This is useful in a few restricted cases, and has the benefit of avoiding a back pointer since all services are available in the pimpl class. The chief drawback is that it normally makes the visible class useless for any inheritance, as either a base or a derived class.
--------------------


thanks in advance,
George
GeneralRe: Inheritance in Pimpl idiom Pin
Maxwell Chen17-Mar-08 20:01
Maxwell Chen17-Mar-08 20:01 
GeneralRe: Inheritance in Pimpl idiom Pin
George_George17-Mar-08 22:01
George_George17-Mar-08 22:01 
AnswerRe: Inheritance in Pimpl idiom [modified] Pin
Maxwell Chen17-Mar-08 20:43
Maxwell Chen17-Mar-08 20:43 
GeneralRe: Inheritance in Pimpl idiom Pin
George_George17-Mar-08 22:14
George_George17-Mar-08 22:14 
AnswerRe: Inheritance in Pimpl idiom Pin
Maxwell Chen17-Mar-08 23:00
Maxwell Chen17-Mar-08 23:00 
GeneralRe: Inheritance in Pimpl idiom Pin
George_George17-Mar-08 23:26
George_George17-Mar-08 23:26 
GeneralRe: Inheritance in Pimpl idiom Pin
Maxwell Chen17-Mar-08 23:53
Maxwell Chen17-Mar-08 23:53 
GeneralRe: Inheritance in Pimpl idiom Pin
George_George18-Mar-08 0:17
George_George18-Mar-08 0:17 
GeneralCopy File and long file path Pin
vikramlinux17-Mar-08 19:26
vikramlinux17-Mar-08 19:26 
GeneralRe: Copy File and long file path Pin
Michael Dunn17-Mar-08 19:45
sitebuilderMichael Dunn17-Mar-08 19:45 
GeneralRe: Copy File and long file path Pin
vikramlinux17-Mar-08 20:23
vikramlinux17-Mar-08 20:23 
Questionshutdown function for CWinApp() Pin
rp_suman17-Mar-08 18:49
rp_suman17-Mar-08 18:49 
GeneralRe: shutdown function for CWinApp() Pin
rp_suman17-Mar-08 18:53
rp_suman17-Mar-08 18:53 
GeneralRe: shutdown function for CWinApp() Pin
Rajkumar R17-Mar-08 21:37
Rajkumar R17-Mar-08 21:37 
GeneralRe: shutdown function for CWinApp() Pin
rp_suman18-Mar-08 4:30
rp_suman18-Mar-08 4:30 
QuestionChange writing direction in RUN TIME (Edit Box) Pin
Joseph Marzbani17-Mar-08 9:50
Joseph Marzbani17-Mar-08 9:50 
GeneralRe: Change writing direction in RUN TIME (Edit Box) Pin
CPallini17-Mar-08 9:53
mveCPallini17-Mar-08 9:53 

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.