Skip to content
Snippets Groups Projects
Select Git revision
1 result Searching

scroll_indicator.cpp

  • tomvg's avatar
    5e199fcd
    Include <algorithm> for std::max for msvc 2017, (#226) · 5e199fcd
    tomvg authored
    Msvc defined its own (lowercase) macros for min/max. Because of this, the std::min and std::max functions need to be explicitly included or otherwise are not availible.
    In the msvc 2019 compiler this issue seems fixed. However, on msvc 2017 not including <algorithm> causes compilation errors. Adding the include is a simple fix that does not hurt the other platforms and enables compilation on msvc 2017.
    5e199fcd
    History
    Include <algorithm> for std::max for msvc 2017, (#226)
    tomvg authored
    Msvc defined its own (lowercase) macros for min/max. Because of this, the std::min and std::max functions need to be explicitly included or otherwise are not availible.
    In the msvc 2019 compiler this issue seems fixed. However, on msvc 2017 not including <algorithm> causes compilation errors. Adding the include is a simple fix that does not hurt the other platforms and enables compilation on msvc 2017.