Click here to Skip to main content
15,938,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalauto_ptr array Pin
George_George1-Apr-08 0:50
George_George1-Apr-08 0:50 
GeneralRe: auto_ptr array Pin
_AnsHUMAN_ 1-Apr-08 0:59
_AnsHUMAN_ 1-Apr-08 0:59 
GeneralRe: auto_ptr array Pin
George_George1-Apr-08 1:41
George_George1-Apr-08 1:41 
GeneralRe: auto_ptr array Pin
CPallini1-Apr-08 1:55
mveCPallini1-Apr-08 1:55 
GeneralRe: auto_ptr array Pin
George_George1-Apr-08 2:03
George_George1-Apr-08 2:03 
GeneralRe: auto_ptr array Pin
CPallini1-Apr-08 2:17
mveCPallini1-Apr-08 2:17 
GeneralRe: auto_ptr array Pin
George_George1-Apr-08 2:22
George_George1-Apr-08 2:22 
GeneralRe: auto_ptr array Pin
CPallini1-Apr-08 2:28
mveCPallini1-Apr-08 2:28 
George_George wrote:
Means auto_ptr will use delete other than delete[] is destructor of auto_ptr?

I think so.

George_George wrote:
What means "array form substituted"?

as the compiler output window shows
_Ty=int [10]

i.e. internal type _Ty (blindly) substitutes an array form.


Your example, IMHO shows:
(1) The std::auto_ptr though helpful is not a panacea.
(2) VC++ compiler is smart.
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


GeneralRe: auto_ptr array Pin
George_George1-Apr-08 2:54
George_George1-Apr-08 2:54 
GeneralRe: auto_ptr array Pin
CPallini1-Apr-08 3:01
mveCPallini1-Apr-08 3:01 
GeneralRe: auto_ptr array Pin
George_George1-Apr-08 3:16
George_George1-Apr-08 3:16 
GeneralRe: auto_ptr array Pin
CPallini1-Apr-08 4:09
mveCPallini1-Apr-08 4:09 
GeneralRe: auto_ptr array Pin
George_George1-Apr-08 4:19
George_George1-Apr-08 4:19 
GeneralRe: auto_ptr array Pin
led mike1-Apr-08 4:24
led mike1-Apr-08 4:24 
GeneralRe: auto_ptr array Pin
George_George1-Apr-08 4:37
George_George1-Apr-08 4:37 
GeneralRe: auto_ptr array Pin
led mike1-Apr-08 5:07
led mike1-Apr-08 5:07 
GeneralRe: auto_ptr array Pin
George_George1-Apr-08 19:38
George_George1-Apr-08 19:38 
GeneralRe: auto_ptr array Pin
led mike2-Apr-08 5:01
led mike2-Apr-08 5:01 
GeneralRe: auto_ptr array Pin
George_George2-Apr-08 23:38
George_George2-Apr-08 23:38 
JokeRe: auto_ptr array Pin
Cedric Moonen1-Apr-08 4:40
Cedric Moonen1-Apr-08 4:40 
GeneralRe: auto_ptr array Pin
George_George1-Apr-08 19:40
George_George1-Apr-08 19:40 
GeneralRe: auto_ptr array [modified] Pin
CPallini1-Apr-08 4:47
mveCPallini1-Apr-08 4:47 
GeneralRe: auto_ptr array Pin
George_George1-Apr-08 19:37
George_George1-Apr-08 19:37 
QuestionRe: auto_ptr array Pin
CPallini1-Apr-08 21:10
mveCPallini1-Apr-08 21:10 
GeneralRe: auto_ptr array Pin
George_George1-Apr-08 21:16
George_George1-Apr-08 21:16 

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.