[Liblas-devel] libLAS and VS2010

Claus Scheiblauer cscheiblauer at gmail.com
Tue Jan 18 11:08:34 EST 2011


Hi,

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.


But I found some other problem when I compiled my program with libLAS:

In the "schema.hpp" header file there is the line

using namespace boost::multi_index;

When I compile, I get this error:

11>C:\Users\long\path\name\include\liblas/schema.hpp(90): error C2872:
'identity' : ambiguous symbol
11>          could be
'C:\LIB\boost_1_45_0-vc100-Win32\boost/multi_index/identity.hpp(135) :
boost::multi_index::identity'
11>          or       'C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\utility(66) : std::identity'

I deleted the line with the "using namespace..." and used the fully
qualified names instead, which resolved the error.
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
:)

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...)


Best regards,
Claus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/liblas-devel/attachments/20110118/d8360702/attachment-0001.html


More information about the Liblas-devel mailing list