<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Numerous using of std::min without including <algorithm> cause compilation fail on windows"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=91060">91060</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Numerous using of std::min without including <algorithm> cause compilation fail on windows
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86 (IA32)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>poppler-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>lztoad@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Poppler (0.33) uses std::min/max while very rarely (if anywhere) including
<algorithm>. Check poppler/Annot.cc or poppler/Array.cc for example.
This causes compilation to fail on windows using msvc (with CMake).
std::min is only guaranteed to be defined if <algorithm> is included. Looks
like <set> includes <algorithm> for gcc. But that is not a guaranteed behavior.
I've workaround it adding
extern "C++"
{
#include <algorithm>

to the poppler-config.h but that is hardly a good solution.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>