Skip to content

Commit

Permalink
Add Caveats section to README.rst
Browse files Browse the repository at this point in the history
The only caveat it currently has is regarding Windows and min/max
macros.
  • Loading branch information
ikalnytskyi committed Feb 6, 2021
1 parent b0c5ee1 commit fab28c5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,11 @@ Control manipulators

#. ``termcolor::colorize``
#. ``termcolor::nocolorize``


Caveats
-------

#. On Windows, due to internal usage of ``<windows.h>``, global namespace could
be polluted with `min`/`max` macros. If such effect is desireable, please
consider using ``#define NOMINMAX`` before ``#include <termcolor.hpp>``.

0 comments on commit fab28c5

Please sign in to comment.