Use funny syntax to prevent min() macro in MSVS

This commit is contained in:
Serge Lamikhov-Center 2020-10-17 22:51:53 +03:00
parent d6338db817
commit 0826f15d0b
2 changed files with 1 additions and 4 deletions

View File

@ -53,7 +53,7 @@ template <class S> class dynamic_section_accessor_template
if ( tag == DT_NULL )
break;
}
entries_num = std::min( entries_num, i + 1 );
entries_num = (std::min)( entries_num, i + 1 );
}
return entries_num;

View File

@ -22,9 +22,6 @@ THE SOFTWARE.
#ifdef _MSC_VER
#define _SCL_SECURE_NO_WARNINGS
// Prevent usage of min() macro when compiled with VS
#define NOMINMAX
#endif
#define BOOST_TEST_MODULE ELFIO_Test