Quantcast
Channel: Bartek's coding blog
Browsing all 325 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Overview of std::filesystem, my talk

Last Tuesday, 16th April, I had a pleasure to talk about std::filesystem in our Cracow C++ User Group.Here are the slides and additional comments.Read more...

View Article


Improving Print Logging with Line Pos Info & Modern C++

No matter how proficient you are, I think, you might still use one of the primary methods of debugging: trace values using printf, TRACE, outputDebugString, etc… and then scan the output while...

View Article


Image may be NSFW.
Clik here to view.

C++ Links #27 - ADL, compiler optimisations, though C++ Quiz

Welcome to new C++ Links - most important and useful articles, podcasts and videos that happen between 27th of April 3rd of May 2019.In this week you will find a little bit of C++ history - how...

View Article

Image may be NSFW.
Clik here to view.

Converting from Boost to std::filesystem

As you may know std::filesystem evolved directly from Boost filesystem library. For a long time, it was available as a Technical Specification and later merged into C++17. Developers who used Boost can...

View Article

Image may be NSFW.
Clik here to view.

C++ Links #28 - No more erase-remove idiom!

Welcome to new C++ Links - most important and useful articles, podcasts and videos that happen between 4th and 10th of May 2019.Today you will find a link to a video that shows how Uniform Container...

View Article


Image may be NSFW.
Clik here to view.

C++ Links #29 - recommended resources about coroutines

Welcome to new C++ Links - most important and useful articles, podcasts and videos that happen between 11th and 17th of May 2019.In this week you will find links for two interesting resources: one...

View Article

Image may be NSFW.
Clik here to view.

[Tip] How to Reference the C++ Standard or a Proposal

You’re writing a document about C++, one feature or some cool programming technique. At one point you think that you have to prove that something works and that’s why you need to quote text from the...

View Article

Image may be NSFW.
Clik here to view.

Heterogeneous Lookup in Ordered Containers, C++14 Feature

If you have a map of strings, like std::map<std::string, int> m; and you want to find some element by m.find("abc"). Do you have to pay the price and construct a std::string object? Can you...

View Article


Image may be NSFW.
Clik here to view.

Space Game: A std::variant-Based State Machine by Example

One of a powerful uses of std::variant is to implement State Machines. Some time ago I showed a simple example, but today we have something bigger. In today’s article by Nikolai Wuttke you’ll see how...

View Article


Image may be NSFW.
Clik here to view.

C++17 In Detail, June Update: Foreword and Printing Tests

Last Friday my book got a fresh update! It’s been three months since the previous release, and this time I brought foreword, new book format and some small content changes. Read more...

View Article

Image may be NSFW.
Clik here to view.

[Quick Case] Surprising Conversions of const char* to bool

If you have two function overloads foo(): one is taking const std::string& and the other taking bool. Which one of them will be selected when you call foo("hello world"); ?Let’s see where such a...

View Article

Image may be NSFW.
Clik here to view.

How To Detect Function Overloads in C++17, std::from_chars Example

The problem: a library function offers several overloads, but depending on the implementation/compiler, some of the overloads are not available. How to check the existence of an overload? And how to...

View Article

Image may be NSFW.
Clik here to view.

Five Awesome C++ Papers for Cologne ISO Meeting

Today is the start day of Summer C++ISO meeting, this time in Cologne, Germany! This is the “feature-complete” meeting for C++20. It’s the last time we’ll see some new elements that are merged into the...

View Article


Image may be NSFW.
Clik here to view.

Improve Multiplatform Code With __has_include and Feature Test Macros

Two weeks ago, I showed you a sample that can detect if a function has a given overload. The example revolved around std::from_chars - low-level conversion routine for C++17. In the example, some...

View Article

Image may be NSFW.
Clik here to view.

C++ Links #30 - Contracts Removed from C++20!

Welcome to new C++ Links - most relevant and useful articles, podcasts and videos that happen between 19th and 26th of July 2019.Today you will find links to Cologne Trip reports, where the final shape...

View Article


Image may be NSFW.
Clik here to view.

Moved or Not Moved - That Is the Question!

C++11 brought Move Semantics. Since then we have extra capabilities to write faster code, support movable-only types, but also more headaches :). At least I have, especially when trying to understand...

View Article

Image may be NSFW.
Clik here to view.

C++ Links #31 - bugs in Bullet Engine and C++20

Welcome to new C++ Links - most relevant and useful articles, podcasts and videos that happen between 27th July and 2nd August 2019.Today you will find links to Bugs in Game Engines, articles about...

View Article


Image may be NSFW.
Clik here to view.

C++ Links #32 - QT6, How to Fix C++ and what's Debugging in C++

Welcome to new C++ Links - most relevant and useful articles, podcasts and videos that happen between 2nd and 9th August 2019.Today you will find links to ideas on how to Fix C++, how to bring more...

View Article

Image may be NSFW.
Clik here to view.

17 Smaller but Handy C++17 Features

When you see an article about new C++ features, most of the time you’ll see a description of major elements. Looking at C++17, there are a lot of posts (including articles from this blog) about...

View Article

Image may be NSFW.
Clik here to view.

C++ Links #33 - Parallel Algorithms, Smaller Features, Pipes & Dropbox

Welcome to new C++ Links - most relevant and useful articles, podcasts and videos that happen between 9th and 16th August 2019.Today you will find links to a list of smaller C++17 features, a free book...

View Article
Browsing all 325 articles
Browse latest View live