How to Share Code with Const and Non-Const Functions in C++--Bartlomiej Filipek

Save to:
Instapaper Pocket Readability

How do you do it?

How to Share Code with Const and Non-Const Functions in C++

by Bartlomiej Filipek

From the article:

During the development of a container-like type, I run into the problem of how to share code between a const and non-const member functions. In this article, I’d like to explain what are the issues and possible solutions. We can even go on a bleeding edge and apply some C++20 features. Which technique is most friendly?

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.