<div dir="ltr">Hi Joaquim,<div><br></div><div>Yes, MAX should work - that was what was originally in the code.  I'm trying hard to get away from macros and such and get to the most robust code we can.  I really want to find a way that we can use <a href="http://www.cplusplus.com/reference/algorithm/max/">std::max</a> which is the C++ way to get the maximum value.  I'd like to get macro usage down as far as possible in the C++ and only use them in pure C code.  There are limits, but std::max shouldn't be one of them.  Any help would be greatly appreciated.</div><div><br></div><div>Thanks!</div><div>-kurt</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 13, 2015 at 11:28 AM, Joaquim Luis <span dir="ltr"><<a href="mailto:jluis@ualg.pt" target="_blank">jluis@ualg.pt</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>


<div><div>Hi Kurt,</div><div><br></div><div>I'll update but later. Now I have to go. Meanwhile I had replaced  std::max by MAX and it passed that point.</div><div><div class="h5"><div><br></div><div><br></div><div><br></div><blockquote style="margin:0 0 0.80ex;border-left:#0000ff 2px solid;padding-left:1ex"><div dir="ltr">Hi Joaquim,<div><br></div><div>I broke the build with <a href="https://trac.osgeo.org/gdal/changeset/31403/" target="_blank">https://trac.osgeo.org/gdal/changeset/31403/</a>.  Even created a ticket: <a href="https://trac.osgeo.org/gdal/ticket/6212" target="_blank">https://trac.osgeo.org/gdal/ticket/6212</a> and I added your error message to the ticket.</div><div><br></div><div><a href="http://build.gisinternals.com/sdk/Default.aspx" target="_blank">http://build.gisinternals.com/sdk/Default.aspx</a> has been down, so it's been tough to see what is happening.<br></div><div><br></div><div>It looks like with my latest fix that the max macro is indeed gone, but now it looks like you are hitting trouble with C++11.  I've just submitted <a href="https://trac.osgeo.org/gdal/changeset/31463" target="_blank">https://trac.osgeo.org/gdal/changeset/31463</a> which might fix the issue.  Can you do a svn update, try again and let me know what you get?</div><div><br></div><div>Thanks,</div><div>-kurt</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 13, 2015 at 10:46 AM, Joaquim Luis <span dir="ltr"><<a href="mailto:jluis@ualg.pt" target="_blank">jluis@ualg.pt</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The error is<br>
<br>
v:\gdal\frmts\hdf4\hdf4imagedataset.cpp(2386) : error C2784: '_Ty std::max(std::initializer_list<_Elem>,_Pr)' : could not deduce template argument for 'std::initializer_list<_Elem>' from 'int'<br>
        c:\program files (x86)\microsoft visual studio 12.0\vc\include\algorithm(4108) : see declaration of 'std::max'<br>
<br>
Joaquim<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>--<div><a href="http://schwehr.org" target="_blank">http://schwehr.org</a></div></div>
</div>
</blockquote><br><br><br></div></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">--<div><a href="http://schwehr.org" target="_blank">http://schwehr.org</a></div></div>
</div>