- Is this undefined behavior? - 2 Updates
- HELP: Need good reference book on C++ - 5 Updates
- HELP: Need good reference book on C++ - 1 Update
"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>: Jun 21 12:52PM -0700 On 6/18/2020 2:47 PM, Chris Vine wrote: > kernel. > Placement operations don't use the delete[] expression so that does not > impinge on the issues I mentioned. Damn. I almost need to create part of it in C. Still not sure how to use the placement array version of new, without getting its "real" size before hand. Wrt the act of having to call the ctor of each element. Say, std::malloc's a 1000 unsigned chars, and the name placement new array adds in some metadata. Well, the size is not big enough to hold the damn header! Shi%! What am I missing? ;^o |
"Öö Tiib" <ootiib@hot.ee>: Jun 21 03:14PM -0700 On Sunday, 21 June 2020 21:02:48 UTC+3, Jorgen Grahn wrote: > > fclose is abstracted away into deleter of unique_ptr. > And it doesn't disappear if you use a std::fstream. > (Not that I always handle the error myself.) Yes. When the data is valuable then I prefer to close the stream explicitly anyway regardless of RAII. Issues that are discovered in destructor are inconvenient to handle. |
Scott Newman <scott69@gmail.com>: Jun 21 08:31PM +0200 When you only want to learn C++11, try this: https://sendit.cloud/a21vepy8wvpn |
Manfred <noname@add.invalid>: Jun 21 09:18PM +0200 On 6/21/2020 7:05 PM, mehrdad wrote: > I do have the C++17 book by N.M. Josuttis, but it seems to be like an > update document rather than a reference book. What I DO NOT need is a > book that tries to teach programming using C++. Any ideas? From its description you may wish to give a look at Stroutstrup's A Tour of C++ (Second edition) which says "It covers C++17 plus a few likely features of C++20" https://www.stroustrup.com/tour2.html Disclaimer: I didn't read it, maybe others can give better informed advice. |
"Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com>: Jun 21 09:40PM +0200 On 21.06.2020 19:38, Öö Tiib wrote: >> book that tries to teach programming using C++. Any ideas? > To get update what C++11/C++14 added perhaps buy that pdf from Scott > Meyers <https://www.artima.com/shop/overview_of_the_new_cpp> Oh, something new for me to look at. I thought SM said some years ago he was leaving the C++ scene for good. Hm. > Update to C++17 you already have you said. > About reference I think <https://en.cppreference.com/w/> is really > good reference (when there is internet access). It can be installed locally. > Most of the good books try to teach deeper tricks how to use one or > other feature of C++ conveniently, but that you said you do not need > in full caps. - Alf |
Real Troll <real.troll@trolls.com>: Jun 21 03:45PM -0400 On 21/06/2020 18:05, mehrdad wrote: > I do have the C++17 book by N.M. Josuttis, but it seems to be like an > update document rather than a reference book. What I DO NOT need is a > book that tries to teach programming using C++. Any ideas? There are no such books called "reference books". You can have either the standard itself or subscribe to various newsletters and continue reading various blogs. Books are for people who wants to learn something; Blogs, newsletters and videos are for people who wants to know something new. In your retirement, you have plenty of time to keep browsing the web, and and subscribing to various spam newsletters and blogs. |
"Öö Tiib" <ootiib@hot.ee>: Jun 21 02:27PM -0700 On Sunday, 21 June 2020 22:40:32 UTC+3, Alf P. Steinbach wrote: > > Meyers <https://www.artima.com/shop/overview_of_the_new_cpp> > Oh, something new for me to look at. I thought SM said some years ago he > was leaving the C++ scene for good. Hm. Maybe he has left but that pdf was fine overview of features in C++11 and C++14. OP said his knowledge is from 2008-2010 with book about C++17. So I did hope it fills the gap. > > About reference I think <https://en.cppreference.com/w/> is really > > good reference (when there is internet access). > It can be installed locally. Oh, I have never even tried its html book version. Is its search engine good? |
ram@zedat.fu-berlin.de (Stefan Ram): Jun 21 07:54PM >reference book on C++ which covers everything (preferably) up to C++ 17. The reference is ISO/IEC 14882:2017(en). You can buy it from the ISO. Sometimes drafts of this might be made available which can be read in the Web. You can also have a look at: C++ primer by Barbara Moo et al. and/or The C++ programming language by Bjarne Stroustrup Make sure you always read the most recent edition! Also check out: The C++ core guidelines by Bjarne Stroustrup et al . The two famous series "Exceptional C++" by Sutter and "Effective C++/STL" (including "Effective Modern C++") by Meyers are getting old (except "Effective Modern C++" and possibly other more recent or updated editions) but are still recommendable for those readers who are able to understand which recommendations are obsolete today. |
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com. |
No comments:
Post a Comment