Difference between revisions of "User talk:Mikael.s.persson"

From ProgrammingExamples
Jump to: navigation, search
(auto)
Line 15: Line 15:
  
 
I saw that you converted a couple of examples to use 'auto'. Isn't this a c++0x thing? If it is, I think we should leave it explicit so that it will work for everyone, but add a comment and the line you added as a comment about how this is the "new way" to do things. What do you think? [[User:Daviddoria|Daviddoria]] 21:20, 20 July 2011 (UTC)
 
I saw that you converted a couple of examples to use 'auto'. Isn't this a c++0x thing? If it is, I think we should leave it explicit so that it will work for everyone, but add a comment and the line you added as a comment about how this is the "new way" to do things. What do you think? [[User:Daviddoria|Daviddoria]] 21:20, 20 July 2011 (UTC)
 +
 +
David,
 +
These were examples from the C++0x section. That's why I made them a bit more C++0x-like. By the way, there might be additions to this section as we might be preparing a set of C++0x tutorials, for Daniweb.[[User:Mikael.s.persson|Mikael]]

Revision as of 20:41, 20 July 2011

Thanks

Mikael,

Thank you for the contributions! Please keep up the good work!

Daviddoria 12:32, 1 December 2010 (UTC)

Hi Mike, I saw you changed std::auto_ptr to std::unique_ptr. Could you explain the difference? Or show the difference in one or more examples? Daviddoria 14:15, 6 April 2011 (UTC)

auto_ptr is deprecated by unique_ptr, that's all. Mike.

auto

Mikael,

I saw that you converted a couple of examples to use 'auto'. Isn't this a c++0x thing? If it is, I think we should leave it explicit so that it will work for everyone, but add a comment and the line you added as a comment about how this is the "new way" to do things. What do you think? Daviddoria 21:20, 20 July 2011 (UTC)

David, These were examples from the C++0x section. That's why I made them a bit more C++0x-like. By the way, there might be additions to this section as we might be preparing a set of C++0x tutorials, for Daniweb.Mikael