Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Auto align of toolbar by frame width Pin
Rage12-Mar-14 22:15
professionalRage12-Mar-14 22:15 
GeneralRe: Auto align of toolbar by frame width Pin
akhil_sudheesh13-Mar-14 19:55
akhil_sudheesh13-Mar-14 19:55 
AnswerRe: Auto align of toolbar by frame width Pin
Rage14-Mar-14 0:07
professionalRage14-Mar-14 0:07 
AnswerRe: Auto align of toolbar by frame width Pin
Rage14-Mar-14 0:15
professionalRage14-Mar-14 0:15 
GeneralRe: Auto align of toolbar by frame width Pin
akhil_sudheesh16-Mar-14 21:29
akhil_sudheesh16-Mar-14 21:29 
Questionstd::shared_ptr causing C4150 warning even if custom deleter is used in Visual C++ 2012 [Solved] Pin
Elerian6-Mar-14 10:17
Elerian6-Mar-14 10:17 
AnswerRe: std::shared_ptr causing C4150 warning even if custom deleter is used in Visual C++ 2012 Pin
«_Superman_»6-Mar-14 14:24
professional«_Superman_»6-Mar-14 14:24 
GeneralRe: std::shared_ptr causing C4150 warning even if custom deleter is used in Visual C++ 2012 Pin
Elerian7-Mar-14 8:10
Elerian7-Mar-14 8:10 
Hi!

I am sure the forward declaration is the problem because you cannot delete a forward declarated type. The compiler simply does not know if it has the call a destructor if it has not been declared.

But what I do not understand is why I get the warning if I supply a custom deleter. In this case the default delete (and therefor class destructor) should not be used by the shared_ptr template. If the last shared_ptr runs out of context it simply calls the provided custom deleter (which should know the full definition for the class it is deleting)

Thank you for your response, but it does not hit the mark.

However, I have found the problem (and the resolution) which I will explain in my next post.

Andreas
AnswerRe: std::shared_ptr causing C4150 warning even if custom deleter is used in Visual C++ 2012 Pin
Elerian7-Mar-14 8:20
Elerian7-Mar-14 8:20 
QuestionThe destructor of MFC application [Solved] Pin
econy6-Mar-14 7:02
econy6-Mar-14 7:02 
AnswerRe: The destructor of MFC application Pin
David Crow6-Mar-14 7:09
David Crow6-Mar-14 7:09 
GeneralRe: The destructor of MFC application Pin
econy6-Mar-14 8:41
econy6-Mar-14 8:41 
GeneralRe: The destructor of MFC application Pin
jeron16-Mar-14 9:15
jeron16-Mar-14 9:15 
GeneralRe: The destructor of MFC application Pin
econy6-Mar-14 10:14
econy6-Mar-14 10:14 
GeneralRe: The destructor of MFC application Pin
jeron16-Mar-14 10:50
jeron16-Mar-14 10:50 
AnswerRe: The destructor of MFC application Pin
«_Superman_»6-Mar-14 14:30
professional«_Superman_»6-Mar-14 14:30 
GeneralRe: The destructor of MFC application Pin
econy7-Mar-14 5:15
econy7-Mar-14 5:15 
Questionso confused. Should I learn Android development? if so, where should I start? Pin
Falconapollo6-Mar-14 4:51
Falconapollo6-Mar-14 4:51 
AnswerRe: so confused. Should I learn Android development? if so, where should I start? Pin
Orjan Westin6-Mar-14 5:36
professionalOrjan Westin6-Mar-14 5:36 
GeneralRe: so confused. Should I learn Android development? if so, where should I start? Pin
Falconapollo6-Mar-14 14:44
Falconapollo6-Mar-14 14:44 
AnswerRe: so confused. Should I learn Android development? if so, where should I start? Pin
David Crow6-Mar-14 7:19
David Crow6-Mar-14 7:19 
GeneralRe: so confused. Should I learn Android development? if so, where should I start? Pin
Falconapollo6-Mar-14 14:45
Falconapollo6-Mar-14 14:45 
AnswerRe: so confused. Should I learn Android development? if so, where should I start? Pin
charlieg6-Mar-14 15:15
charlieg6-Mar-14 15:15 
GeneralRe: so confused. Should I learn Android development? if so, where should I start? Pin
Falconapollo6-Mar-14 15:17
Falconapollo6-Mar-14 15:17 
GeneralRe: so confused. Should I learn Android development? if so, where should I start? Pin
charlieg6-Mar-14 15:46
charlieg6-Mar-14 15:46 

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.