Hi,<div><br></div><div>I checked out the latest version of libLAS from the repository, because I also had the issue with the min and max macros, and the latest version solves this problem.</div><div><br></div><div><br></div>
<div>But I found some other problem when I compiled my program with libLAS:</div><div><br></div><div>In the "schema.hpp" header file there is the line</div><div><br></div><div>using namespace boost::multi_index;</div>
<div><br></div><div>When I compile, I get this error:</div><div><br></div><div>11>C:\Users\long\path\name\include\liblas/schema.hpp(90): error C2872: 'identity' : ambiguous symbol</div><div>11> could be 'C:\LIB\boost_1_45_0-vc100-Win32\boost/multi_index/identity.hpp(135) : boost::multi_index::identity'</div>
<div>11> or 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\utility(66) : std::identity'</div><div><br></div><div>I deleted the line with the "using namespace..." and used the fully qualified names instead, which resolved the error.</div>
<div>Somewhere in my program I most certainly have a "using namespace std;" in some header file, which is the perfect opportunity for me to delete it now :)</div><div><br></div><div>I was just wondering if it would be possible to avoid having this "using namespace" statement in the header file, as this actually beats the purpose of having namespaces... (as I have just found out...)</div>
<div><br></div><div><br></div><div>Best regards,</div><div>Claus</div>