Click here to Skip to main content
15,896,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionwhere the memory leak? Pin
guqingkui17-May-09 4:32
guqingkui17-May-09 4:32 
AnswerRe: where the memory leak? Pin
N a v a n e e t h17-May-09 4:57
N a v a n e e t h17-May-09 4:57 
GeneralRe: where the memory leak? Pin
guqingkui17-May-09 5:26
guqingkui17-May-09 5:26 
GeneralRe: where the memory leak? Pin
N a v a n e e t h17-May-09 7:00
N a v a n e e t h17-May-09 7:00 
GeneralRe: where the memory leak? Pin
guqingkui17-May-09 7:10
guqingkui17-May-09 7:10 
AnswerRe: where the memory leak? Pin
Stephen Hewitt17-May-09 6:01
Stephen Hewitt17-May-09 6:01 
GeneralRe: where the memory leak? Pin
guqingkui17-May-09 6:04
guqingkui17-May-09 6:04 
GeneralRe: where the memory leak? Pin
Stephen Hewitt17-May-09 6:34
Stephen Hewitt17-May-09 6:34 
GeneralRe: where the memory leak? Pin
guqingkui17-May-09 6:54
guqingkui17-May-09 6:54 
AnswerRe: where the memory leak? Pin
«_Superman_»17-May-09 16:07
professional«_Superman_»17-May-09 16:07 
AnswerRe: where the memory leak? Pin
Stephen Hewitt19-May-09 20:07
Stephen Hewitt19-May-09 20:07 
QuestionFor gcc-3.3 compiler's Optimization function, who can provide some c source code for each optimize Options? Pin
oleetron16-May-09 22:21
oleetron16-May-09 22:21 
AnswerRe: For gcc-3.3 compiler's Optimization function, who can provide some c source code for each optimize Options? Pin
oleetron16-May-09 22:26
oleetron16-May-09 22:26 
QuestionwndTopMost - getting C2065 error Pin
Still learning how to code16-May-09 21:43
Still learning how to code16-May-09 21:43 
AnswerRe: wndTopMost - getting C2065 error Pin
Cedric Moonen16-May-09 22:15
Cedric Moonen16-May-09 22:15 
AnswerRe: wndTopMost - getting C2065 error Pin
Taran916-May-09 22:17
Taran916-May-09 22:17 
GeneralRe: wndTopMost - getting C2065 error Pin
Still learning how to code17-May-09 2:54
Still learning how to code17-May-09 2:54 
QuestionMessage Map Entries For CAsyncSocet Pin
ForNow16-May-09 17:36
ForNow16-May-09 17:36 
AnswerRe: Message Map Entries For CAsyncSocet Pin
«_Superman_»16-May-09 19:23
professional«_Superman_»16-May-09 19:23 
GeneralRe: Message Map Entries For CAsyncSocet Pin
ForNow16-May-09 21:50
ForNow16-May-09 21:50 
Questiondefault arguments resolution Pin
hawk23reddy16-May-09 17:14
hawk23reddy16-May-09 17:14 
AnswerRe: default arguments resolution Pin
Joe Woodbury16-May-09 18:05
professionalJoe Woodbury16-May-09 18:05 
GeneralRe: default arguments resolution Pin
hawk23reddy16-May-09 18:28
hawk23reddy16-May-09 18:28 
GeneralRe: default arguments resolution Pin
Joe Woodbury16-May-09 18:29
professionalJoe Woodbury16-May-09 18:29 
GeneralRe: default arguments resolution Pin
Stuart Dootson17-May-09 13:04
professionalStuart Dootson17-May-09 13:04 
The C++ standard says this about default arguments (in section 8.3.6 para 10):

10 A virtual function call (10.3) uses the default arguments in the declaration of the virtual function determined by the static type of the pointer or reference denoting the object. An overriding function in a derived class does not acquire default arguments from the function it overrides.


Note the use of static type of the pointer or reference - the static type of your reference is a reference to the base type, so it uses the base type's default parameter value.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

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.