mirror of
https://github.com/jezhiggins/arabica
synced 2025-02-06 20:46:18 +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
|
#ifndef ARABICA_XSLT_PRECEDENCE_HPP
|
||||||
#define ARABICA_XSLT_PRECEDENCE_HPP
|
#define ARABICA_XSLT_PRECEDENCE_HPP
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
class Precedence
|
class Precedence
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -92,7 +94,7 @@ bool operator<(const Precedence& lhs, const Precedence& rhs)
|
||||||
if(lhs.precedence_ == rhs.precedence_)
|
if(lhs.precedence_ == rhs.precedence_)
|
||||||
return false;
|
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)
|
for(int c = 0; c != len; ++c)
|
||||||
{
|
{
|
||||||
if(lhs.precedence_[c] < rhs.precedence_[c])
|
if(lhs.precedence_[c] < rhs.precedence_[c])
|
||||||
|
|
Loading…
Add table
Reference in a new issue