On page 206 of Beginning C++17 ISBN: 9781484233665 published in 2018 you will find the following about smart pointers. Always use either the std::vector<> container (to replace dynamic arrays) or a smart pointer (to dynamically allocate objects and manage their lifetimes). These high-level alternatives are much, much safer than the low-level memory management primitives and will help you tremendously . . . Quote from the book While using std::vector<> is usually good, the opinion expressed … The Myth of Smart PointersRead more
Information Technology
Posts relating to the IT industry
C++ Arrays and Pointers Example
C++ arrays and pointers really originate with the C programming language. There have been massive improvements since the 1980s. Back then declaring arrays of structures was a bit iffy. Much of that had to do with the Stack vs. Near Heap vs. Far Heap issues of memory segmentation and “bytes allocated for alignment.” Refer to the std::vector post for further information on that. The Code We have a lot to talk about with this short … C++ Arrays and Pointers ExampleRead more
Review – Bitdefender Premium Security
Bitdefender Premium Security is yet another shining example of why no company should ever be allowed to use Agile software development. Thank God I only put this on three machines! If I had installed it on the ten machines it was licensed for all I would do all day long is re-install it on them. ★☆☆☆☆ Save These Links Re-install using Windows 10 itself. Forcibly remove Bitdefender paid software. Those links are your friends. Support … Review – Bitdefender Premium SecurityRead more
Review – McAfee Total Protection
McAfee Total Protection is a shining example of why no company should ever use Agile. I’m a long way from newbie in the software world. I mean over 30 years of software consulting on many different platforms in quite a few different industries should count for something. Heck, I even write an award winning technical book series. This software is looking up at worthless hoping to one day be that good. ☆☆☆☆☆ Forget About Your … Review – McAfee Total ProtectionRead more
A std::vector Example and Explanation
If you want a really good method of identifying a legacy C++ library/framework, see if it provides a vector class. For C this would be a set of vector functions. Arrays in C and C++ are hard coded at compile time. This dates back to the beginning of the languages. During the early 1980s VAX BASIC was the only widely used programming language supporting dynamic arrays. You may not be familiar with BASIC but the … A std::vector Example and ExplanationRead more