In today's post I share a learning of a customer with you. A while back, a customer asked me to join a debugging session. They had an issue they didn't (fully) understand.
An option(al) to surprise you
by Andreas Fertig
From the article:
The base
What I will show you is a much down-stripped and, of course, altered version. It was about a message system, but that's not important. Have a look at the code below.
You can see a class enum for a state and a function
Worker
. The function takes aState
and aconst char*
message nameddata
. The function's job is to create astd::optional
containing the user data, a C-style string.
Add a Comment
Comments are closed.