<div dir="ltr"><div><br></div><div class="gmail_extra"><div class="gmail_quote">On Fri, Dec 13, 2013 at 7:11 AM, Glynn Clements <span dir="ltr"><<a href="mailto:glynn@gclements.plus.com" target="_blank">glynn@gclements.plus.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im"><br>
Vaclav Petras wrote:<br>
<br>
> > The right fix is to remove all occurrences of "using namespace std;",<br>
> > then fix the (probably hundreds) of errors which arise, either by<br>
> > using qualified names (e.g. std::vector) or by adding "using"<br>
> > statements for individual names (e.g. "using std::vector;").<br>
> ><br>
> > I tried to delete all "using namespace std;" but the error "<br>
> reference...ambiguous" was still there in slightly different form<br>
<br>
</div>The issue was also present in the libiostream headers used by<br>
r.terraflow and r.viewshed.<br>
<br>
Try r58455.<br></blockquote><div><br></div><div>Thanks Glynn, I haven't noticed GRASS libiostream. Now it compiles (make distclean && make). Tested with clang on Ubuntu and Mac.</div><div><br></div><div>Vaclav</div>

<div><br></div><div>For the record: <span style="font-family:arial,sans-serif;font-size:13px">r58434 is reverted in </span>r58455 because r58455 makes r58434 unnecessary.</div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">[r58434] </span><a href="https://trac.osgeo.org/grass/changeset/58434" target="_blank" style="font-family:arial,sans-serif;font-size:13px">https://trac.osgeo.org/grass/changeset/58434</a><br>

</div><div>[r58455] <a href="https://trac.osgeo.org/grass/changeset/58455">https://trac.osgeo.org/grass/changeset/58455</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">By the way, grepping "using namespace" now returns:</div>

<div class="gmail_extra"><br></div><div><div>./imagery/i.atcorr/common.h:14:using namespace std;</div><div>./lib/iostream/mm_utils.cpp:41:using namespace std;</div><div>./lib/iostream/mm.cpp:44:using namespace std;</div>
</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><font color="#888888"><br>
--<br>
Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>
</font></span></blockquote></div><br></div></div>