Why use NOMINMAX? #ifndef NOMINMAX #define NOMINMAX #endif #include <windows.h> #include <algorithm> // Now std::min/std::max work fine --- When you include the Windows header <windows.h>, by default it defines two macros: #define min(a, b) ... #define max(a, b) ... These macros conflict with the standard C++ std::min and std::max functions, which can cause unexpected errors or make it hard to use templates and algorithms cleanly. By defining NOMINMAX before including <windows.h>, you prevent Windows from defining these macros, so you can use std::min and std::max safely.
farshid’s Post
More Relevant Posts
-
Curious how Duo can streamline Windows Logon? 💻 See it in action with our step-by-step demo and learn how to add two-factor authentication for both Remote Desktop and local logons. Secure access made simple. (Optimized for desktop users) https://cs.co/6048ARwT8 #SecureAccess #WindowsLogon
Duo For Windows Logon Demo
To view or add a comment, sign in
-
💗 Lesson 7 - Use the full size of your screen with snap layouts 💗 Do you have a big screen like me, or a small screen but just like having many things going on at the same time? I give you snap layouts to make sure you use the full size of your screen 😎. With snap layouts can you: 🪟 Easily change what should be seen on your screen 🪟 Control every corner of that big screen ;) You reach it by the shortcut WIN + Z. Read my latest blog post on more details: https://lnkd.in/d3cvmynn #AmandalearnsW11 #ItsAmandatory #Windows11 Windows IT pro
To view or add a comment, sign in
-
-
Selecting layers just got easier 🙌 Now you can select multiple layers in the panel. 👉 Hold Shift to grab everything in between. 👉 Hold ⌘ (Mac) or Ctrl (Windows) to pick layers one by one. Then do more with them: right click to run global actions or drag them all into your workflow or map in one move
To view or add a comment, sign in
-
There are many RAM cleaners that claim to free up RAM to speed up the system. That’s actually bad for the system. Read the full article: 5 Types of Windows Tools That Do More Harm Than Good ▸ https://lttr.ai/AiIQq #WindowsSearchIndex #DeleteEssentialData #WindowsToolsDeliver #DestabilizeWindows #DecreaseSsdLifespan #WasteCpuCycles #BloatwareRemovalToolsScripts #PerformUnnecessaryFunctions #JunkFileCleaners #FactoryResetWindows
To view or add a comment, sign in
-
-
🖥 3 Free Ways to Create Windows 10 Recovery Disk Want to restore your system after a crash? Fix startup issues? Or reinstall Windows without an installation disc? Here are 3 methods you can try: Way 1: AOMEI Backupper ✔ Create bootable USB/CD/DVD ✔ Create recovery disk from another PC ✔ Support backups (system/disk/file) ❌ Limited features in free version Way 2: Recovery Media Creator ✔ Built-in, free with Windows 10 ✔ Quickly create a recovery USB ❌ Only basic troubleshooting tools Way 3: Backup and Restore (Windows 7) ✔ Create system image + recovery CD/DVD ✔ Complete system recovery ❌ Slower & less intuitive 👉 Have you created a recovery disk in Windows 10? Share the tool you used in the comments! #Windows10 #RecoveryDisk #SystemRecovery #DataBackup #AOMEIBackupper #Windows11RecoveryDisk #RecoveryUSB #RecoveryDisc
To view or add a comment, sign in
-
Windows 11 will SOON show on-hover actions in File Explorer Home! The latest Beta (26120.5790) and Dev (26220.5790) builds come with this new feature implemented. https://lnkd.in/grUG4TBY https://lnkd.in/gKJtU7Qu #Windows11 #WindowsInsiders
To view or add a comment, sign in
-
-
🔊 Microsoft fixed Windows 11 audio problems that were confirmed in December. 🖥️ The company released patches to restore proper sound functionality for affected users. ➡️ https://lnkd.in/dKzsjJA6 #microsoft #windows11 #audio #bug #fix
To view or add a comment, sign in
-
-
Setting Safe Mode as a boot option Press the Windows button + X Select Command Prompt (Admin) - (may be shown as Terminal (Admin) type bcdedit /copy {current} /d 'Windows 10 Safe Mode' Press Enter Next, click the Windows button Type msconfig, and then click on the System Configuration app in the results window Navigate to the Boot tab Find your newly created Windows 10 Safe Mode option Highlight it and select 'Safe Boot' option below Select 'Minimal' under Boot type choices Select 'Make all boot settings permanent' Click Ok If you ever want to get rid of the Safe Mode entry, you can do it easily by returning here and deleting it.
To view or add a comment, sign in
-
If you have Windows, read this. Update KB5063878 is reportedly corrupting SSDs when writing large files, like when installing a triple-A game. Pause Windows Update, check if you have it installed in Update History and uninstall.
To view or add a comment, sign in
-
One-size-fits-all doesn't work for your windows. Discover the difference a custom-fit installation can make in your home's energy use and appearance. https://lnkd.in/ePZ7EFC9 Schedule a free in-home estimate today! 👉 https://lnkd.in/duJ78eRW #HomeCraftWindows #Windows #Doors #ReplacementWindows #ReplacingWindows #EntryDoors #PatioDoors #WindowInstallation
To view or add a comment, sign in
-