Blog

Page 447 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for error: passing xxx as "this" argument of xxx discards qualifiers

error: passing xxx as "this" argument of xxx discards qualifiers

Published on September 2, 2023

## 🚨 ERROR: Passing 'const StudentT' as 'this' argument of 'int StudentT::getId()' discards qualifiers 🚨 Hey there! It looks like you've stumbled upon an error in your code. Don't worry, though! I'm here to help you understand what's wrong and how to fi

Cover Image for enum to string in modern C++11 / C++14 / C++17 and future C++20
enumsstring

enum to string in modern C++11 / C++14 / C++17 and future C++20

Published on September 2, 2023

šŸ“ **enum to string in modern C++: A Comprehensive Guide** Are you tired of struggling to convert enums to strings in modern C++? Look no further! In this blog post, we will explore the new features in C++11, C++14, and C++17, and even give you a sneak pe

Cover Image for When to use extern in C++

When to use extern in C++

Published on September 2, 2023

šŸ“ **The Power of `extern` in C++ šŸš€** So you've come across the mysterious `extern` declaration in C++ and you're wondering when this little gem actually comes in handy. Fear not, my tech-savvy friend! In this blog post, we'll dive into the world of `ext

Cover Image for Which is faster: Stack allocation or Heap allocation
memoryperformance

Which is faster: Stack allocation or Heap allocation

Published on September 2, 2023

šŸ“šŸš€ **Title: Stack Allocation vs Heap Allocation: Which is Faster?** šŸ’­ Are you facing the age-old debate of choosing between stack allocation and heap allocation? In this article, we'll clear the air and provide you with valuable insights to help you ma

Cover Image for error: request for member ".." in ".." which is of non-class type

error: request for member ".." in ".." which is of non-class type

Published on September 2, 2023

# Understanding the "error: request for member '...' in '...' which is of non-class type" Hey there tech enthusiasts! šŸ‘‹ Have you ever encountered the dreaded "error: request for member '...' in '...' which is of non-class type" when working with object-

Cover Image for Why have header files and .cpp files?

Why have header files and .cpp files?

Published on September 2, 2023

šŸ‘‹ Hey there, tech enthusiasts! Today, we're diving deep into the world of C++ and answering a question that has puzzled many beginners: "Why does C++ have header files and .cpp files?" šŸ¤” ✨ Let's start with the basics. In C++, the separation of code into

Cover Image for What are the main purposes of std::forward and which problems does it solve?

What are the main purposes of std::forward and which problems does it solve?

Published on September 2, 2023

# The Magic of std::forward: A Guide to Perfect Forwarding in C++ Are you tired of dealing with the complexities of passing arguments to functions in C++? Do you wish there was an easier and more efficient way to handle rvalue references? Look no further!

Cover Image for C++ multiline string literal

C++ multiline string literal

Published on September 2, 2023

# C++ Multi-line String Literal: Hacks and Solutions! šŸš€ Have you ever found yourself in a situation where you needed to create a multi-line string literal in C++, just like in Perl? You're not alone! Many developers have struggled with this limitation in

Cover Image for Xcode 4 - "Valid signing identity not found" error on provisioning profiles on a new Macintosh install

Xcode 4 - "Valid signing identity not found" error on provisioning profiles on a new Macintosh install

Published on September 2, 2023

# Xcode 4 - "Valid signing identity not found" Error on Provisioning Profiles: A Quick Fix Guide šŸ‘Øā€šŸ’»šŸ”§šŸ“² So you've just set up a new Macintosh with a fresh installation of everything, and you're trying to run your Xcode 4 projects. But here's the catch

Blog | Matheus Mello