mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-30 08:38:15 +01:00
Windows compatibility fix - it defines min as a macro, so use bracket function call to defeat it
This commit is contained in:
parent
e33535905a
commit
d7602d5a7d
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
|||
#ifndef ARABICA_XSLT_PRECEDENCE_HPP
|
||||
#define ARABICA_XSLT_PRECEDENCE_HPP
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
class Precedence
|
||||
{
|
||||
public:
|
||||
|
@ -92,7 +94,7 @@ bool operator<(const Precedence& lhs, const Precedence& rhs)
|
|||
if(lhs.precedence_ == rhs.precedence_)
|
||||
return false;
|
||||
|
||||
int len = std::min(lhs.precedence_.size(), rhs.precedence_.size());
|
||||
int len = (std::min)(lhs.precedence_.size(), rhs.precedence_.size());
|
||||
for(int c = 0; c != len; ++c)
|
||||
{
|
||||
if(lhs.precedence_[c] < rhs.precedence_[c])
|
||||
|
|
Loading…
Add table
Reference in a new issue