Bug of the week #11
Posted in

Bug of the week #11

Welcome to the next pikoTutorial ! The error we’re handling today is a C++ compilation error: What does it mean? It often occurs when the compiler encounters a place in the code where it would normally expect a static member function, but the actual function is not static. Let’s say…

Bug of the week #11 Read More
Folding expressions in C++
Posted in

Folding expressions in C++

Welcome to the next pikoTutorial ! What is a folding expression? Imagine that you have a vector of integers and you need to add some predefined values to it. The obvious choice seems to be just using push_back() function applied a couple of times: This works, but look how much…

Folding expressions in C++ Read More
Bug of the week #10
Posted in

Bug of the week #10

Welcome to the next pikoTutorial ! The error we’re handling today is a C++ compilation error: Or a similar one: What does it mean? This error occurs in situations when you provide a declaration of a type, but don’t provide definition of that type. For example, if I try to…

Bug of the week #10 Read More
Bug of the week #8
Posted in

Bug of the week #8

Welcome to the next pikoTutorial! The error we’re handling today is a C++ compilation error: What does it mean? In C++, the error occurs when you try to invoke a function that has been explicitly marked as deleted or implicitly deleted by the compiler. This error commonly arises in relation…

Bug of the week #8 Read More
Bug of the week #7
Posted in

Bug of the week #7

Welcome to the next pikoTutorial! The error we’re handling today is a C++ compilation error: What does it mean? The requirement for main to return an integer stems from convention and standardization within the programming languages. In C and C++, the main function is typically defined with a return type…

Bug of the week #7 Read More
Custom literals in C++
Posted in

Custom literals in C++

Welcome to the next pikoTutorial! What are C++ literals? Literals in C++ are constant values directly embedded into the code, such as numbers, characters and strings. They represent fundamental data, making the code more readable and expressive. C++ provides several built-in literals, like integer literals (42), floating-point literals (3.14), and…

Custom literals in C++ Read More
Enums vs enum class in C++
Posted in

Enums vs enum class in C++

Welcome to the next pikoTutorial! When dealing with enumerations in C++, developers have two primary options: traditional enum and enum class. Traditional enums vs enum classes At the first glance, the only difference appears to be in the class keyword: The real difference is however in how both of them…

Enums vs enum class in C++ Read More