Blog
Page 447 of my articles, tutorials, and thoughts
Latest Articles
error: passing xxx as "this" argument of xxx discards qualifiers
## šØ 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
enum to string in modern C++11 / C++14 / C++17 and future C++20
š **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
When to use extern in C++
š **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
Which is faster: Stack allocation or Heap allocation
šš **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
error: request for member ".." in ".." which is of non-class type
# 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-
Why have header files and .cpp files?
š 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
What are the main purposes of std::forward and which problems does it solve?
# 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!
C++ multiline string literal
# 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
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: 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







