Skip to content

Commit d7d9e51

Browse files
authored
Update README.md
1 parent 530bda6 commit d7d9e51

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

README.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,34 @@
11
# Singleton pattern examples in C++
22

3-
A collection of minimal, self-contained C++ examples demonstrating multiple ways to implement the Singleton design pattern.
4-
The repository includes modern, thread-safe techniques (Meyers Singleton) and legacy aproaches (Raw Pointers, Double-Checked Locking) for comparison.
3+
A collection of minimal, self-contained C++ examples demonstrating multiple ways to implement the Singleton design pattern. The repository includes modern, thread-safe techniques (Meyers Singleton) and legacy aproaches (Raw Pointers, Double-Checked Locking) for comparison.
54

65
## Prerequisites
76

87
Before building, ensure you have the following installed:
98

10-
### Windows
9+
### Common Requirements (All Platforms)
1110

1211
* **CMake** (v3.20 or newer required for Presets)
1312

14-
### Linux
13+
### Windows - Visual Studio MSVC (Preset: windows-msvc)
1514

16-
* **CMake** (v3.20 or newer required for Presets)
17-
* **GCC or Clang + Ninja
15+
* **Visual Studio 2022**
16+
* **Workload Required:** Desktop development with C++
17+
* **Note:** The preset uses the Visual Studio 17 2022 generator.
18+
19+
### Windows - MinGW (Preset: windows-mingw)
20+
21+
* **MinGW-w64 Toolchain**
22+
* **Make Tool: mingw32-make** (Included with most MinGW installers).
23+
* **Configuration:** The bin folder of your MinGW installation (e.g., C:\msys64\mingw64\bin) must be in your system PATH environment variable.
24+
25+
### Linux (Preset: linux-ninja)
26+
27+
* **C++ Compiler:** GCC or Clang (supporting C++17)
28+
29+
* **Generator: Ninja Build System**
30+
31+
Install Command (Ubuntu/Debian):
1832
```bash
19-
sudo apt install build-essential ninja-build
33+
sudo apt update && sudo apt install build-essential ninja-build cmake
2034
```

0 commit comments

Comments
 (0)