- Solution
In this lesson, we'll discuss the solution to the previous exercise.
We'll cover the following...
We'll cover the following...
Solution
Explanation
First, let’s consider static std::once_flag. This is declared in line 9 and initialized in line 29. The static method getInstance (lines 18 - 21) uses the flag in order to ensure that the ...