c++

Delete overload in C++

C++11 introduced a way to disable (delete) methods from being used. It is mostly used to delete certain operators. The classic case is the implementation of std::unique_ptr. The copy constructor and assignment operator are deleted, so it is not possible to copy a unique pointer.

C++ memory leak without virtual destructor

In this post I will talk about detecting and debugging memory leaks in a C++11 program, Visual Studio’s built in heap profiler and Intel Parallel Studio 2019. And also the importance of virtual destructors when implementing derived subclasses.

Visual Studio 2017 with C++17 and Boost

Visual Studio 2017 was just recently updated to version 15.5. It brings many goodies for us C++ programmers, among them a C++17 compiler switch /std:c++17, and a conformance mode switch /permissive-.

C++ Hello World with Classes

In this article we will show you how to write C++ Hello World program using classes with constructors and destructors. We will create different beginner C++ programs that will output “Hello, World!” as an example.

C++ Variables and Data Types

What is data type?
In programming languages, data type is a classification that defines which type of value a variable can contain and what type of operations (mathematical, relational or logical operations) can be applied to it without causing any error or unwanted side effects.

C++ Hello World

This is a C++ introduction tutorial for beginners with an example that will print the text “Hello, World!” written in C++ into the console window.

C++ Boost Asio Introduction Tutorial

In the C++ Boost.ASIO library, ASIO stands for asynchronous input/output. This library allows asynchronous processing of data. Asynchronous means that a program doesn’t have to wait for completion of an operation to start a new one. It can execute more than one operations concurrently.