Our website uses cookies to enhance your browsing experience.
Accept
to the top
>
>
>
C++

Posts: C++ articles

Jan 11 2010
Optimization in the world of 64-bit errors
Andrey Karpov
In the previous blog-post I promised to tell you why it is difficult to demonstrate 64-bit errors by simple examples. We spoke about operator[] and I told that in simple cases even incorrect...
...
Jan 11 2010
Search of 64-bit errors in array implementation
Andrey Karpov
In PVS-Studio 3.43, we revised the way how Viva64 analyzer detects errors in the classes serving as containers (arrays). Before, we have stuck to the principle that if a class has operator[...
...
Subscribe to the newsletter
Want to receive a monthly digest of the most interesting articles and news? Subscribe!
Jan 11 2010
Peculiarities of virtual functions
Andrey Karpov
I decided to describe one thing related to virtual functions because I am afraid I can forget it and return to this question once again later...
...
Dec 21 2009
Why A + B != A - (-B)
Andrey Karpov
While developing Viva64 analyzer intended for detecting 64-bit errors, I sometimes encounter interesting ways of code behavior. I would like to show you one example that is not very...
...
Dec 10 2009
Issues in real programs - what errors are not there in the world...
Andrey Karpov
When testing the analyzer PVS-Studio on one of the projects we found an interesting error. This error does not refer to the topic of 64-bits although its consequences are diagnosed as...
...
Dec 03 2009
64-bit code issues in real programs: pointer type change
Andrey Karpov
Explicit type conversions often mask errors related to a change of a pointer type. One of such errors is casting of a pointer to 32-bit objects into a pointer to 64-bit...
...
Nov 19 2009
A nice 64-bit error in C
Andrey Karpov
In C language, you may use functions without defining them. Pay attention that I speak about C language, not C++. Of course, this ability is very dangerous. Let us have a look at an...
...
Nov 08 2009
Interview with Anatoliy Kuznetsov, the author of BitMagic C++ library
Andrey Karpov
In this article, Anatoliy Kuznetsov answers the questions and tells us about the open BitMagic C++...
...
Sep 25 2009
64-bit Loki
Andrei Alexandrescu, Andrey Karpov, Evgenii Ryzhkov, Peter Kummel, Rich Sposato
The article is a report about testing of portability of Loki library with 64-bit systems with the help of Viva64 code analyzer performed by OOO "Program Verification Systems" Company. It...
...
Sep 21 2009
About size_t and ptrdiff_t
Andrey Karpov
The article explains what size_t and ptrdiff_t types are, their purpose, and when to use them. The following information is especially valuable for developers starting to create 64-bit...
...
View more Pagination arrow previous
Showing: - of 617