R: Re: [Liblas-devel] libLAS and VS2010

esteban70 at libero.it esteban70 at libero.it
Mon Jan 10 15:55:58 EST 2011


>----Messaggio originale----
>Da: hobu.inc at gmail.com
>Data: 10/01/2011 21.09
>A: "esteban70 at libero.it"<esteban70 at libero.it>
>Cc: <liblas-devel at lists.osgeo.org>
>Ogg: Re: [Liblas-devel] libLAS and VS2010
>
>
>Macros are evil.  
>
>Please pull the latest and see if you still have the same problem.  I have 
hopefully resolved this now.
>
>Thanks for the report!

There are many other places to change:
std::numeric_limits<T>::max
std::numeric_limits<T>::min
all the function named min and max (T min(std::size_t const& index) const, 
void min(std::size_t const& index, T v), liblas::Point min(), etc...)

1>C:\Develop\install\include\liblas/bounds.hpp(73): warning C4003: not enough 
actual parameters for macro 'max'
1>C:\Develop\install\include\liblas/bounds.hpp(73): warning C4003: not enough 
actual parameters for macro 'min'
1>C:\Develop\install\include\liblas/bounds.hpp(132): warning C4003: not enough 
actual parameters for macro 'max'
1>C:\Develop\install\include\liblas/bounds.hpp(132): warning C4003: not enough 
actual parameters for macro 'min'
1>C:\Develop\install\include\liblas/bounds.hpp(73): error C2589: '(' : illegal 
token on right side of '::'
1>C:\Develop\install\include\liblas/bounds.hpp(173) : see reference to class 
template instantiation 'liblas::Range<T>' being compiled
1>C:\Develop\install\include\liblas/bounds.hpp(73): error C2589: '(' : illegal 
token on right side of '::'
1>C:\Develop\install\include\liblas/bounds.hpp(73): error C2589: '(' : illegal 
token on right side of '::'
1>C:\Develop\install\include\liblas/bounds.hpp(73): error C2059: syntax error 
: '::'
1>C:\Develop\install\include\liblas/bounds.hpp(73): error C2589: '(' : illegal 
token on right side of '::'
1>C:\Develop\install\include\liblas/bounds.hpp(73): error C2589: '(' : illegal 
token on right side of '::'
1>C:\Develop\install\include\liblas/bounds.hpp(73): error C2059: syntax error 
: '::'
1>C:\Develop\install\include\liblas/bounds.hpp(288): warning C4003: not enough 
actual parameters for macro 'min'
1>C:\Develop\install\include\liblas/bounds.hpp(308): warning C4003: not enough 
actual parameters for macro 'max'
1>C:\Develop\install\include\liblas/bounds.hpp(328): warning C4003: not enough 
actual parameters for macro 'min'
1>C:\Develop\install\include\liblas/bounds.hpp(344): warning C4003: not enough 
actual parameters for macro 'max'
1>C:\Develop\install\include\liblas/bounds.hpp(559): warning C4003: not enough 
actual parameters for macro 'min'
1>C:\Develop\install\include\liblas/bounds.hpp(559): warning C4003: not enough 
actual parameters for macro 'max'
1>C:\Develop\install\include\liblas/bounds.hpp(562): warning C4003: not enough 
actual parameters for macro 'min'
1>C:\Develop\install\include\liblas/bounds.hpp(562): warning C4003: not enough 
actual parameters for macro 'max'
1>C:\Develop\install\include\liblas/bounds.hpp(563): warning C4003: not enough 
actual parameters for macro 'max'
1>C:\Develop\install\include\liblas/bounds.hpp(563): warning C4003: not enough 
actual parameters for macro 'max'
1>C:\Develop\install\include\liblas/bounds.hpp(578): warning C4003: not enough 
actual parameters for macro 'min'
1>C:\Develop\install\include\liblas/bounds.hpp(579): warning C4003: not enough 
actual parameters for macro 'max'
...
...

Same problem also in index.hpp:

1>C:\Develop\install\include\liblas/index.hpp(196): warning C4003: not enough 
actual parameters for macro 'max'
1>C:\Develop\install\include\liblas/index.hpp(196): warning C4003: not enough 
actual parameters for macro 'min'
1>C:\Develop\install\include\liblas/index.hpp(197): warning C4003: not enough 
actual parameters for macro 'max'
1>C:\Develop\install\include\liblas/index.hpp(197): warning C4003: not enough 
actual parameters for macro 'min'
1>C:\Develop\install\include\liblas/index.hpp(198): warning C4003: not enough 
actual parameters for macro 'max'
1>C:\Develop\install\include\liblas/index.hpp(198): warning C4003: not enough 
actual parameters for macro 'min'
1>C:\Develop\install\include\liblas/index.hpp(229): warning C4003: not enough 
actual parameters for macro 'min'
1>C:\Develop\install\include\liblas/index.hpp(230): warning C4003: not enough 
actual parameters for macro 'max'
1>C:\Develop\install\include\liblas/index.hpp(231): warning C4003: not enough 
actual parameters for macro 'min'
1>C:\Develop\install\include\liblas/index.hpp(232): warning C4003: not enough 
actual parameters for macro 'max'
1>C:\Develop\install\include\liblas/index.hpp(233): warning C4003: not enough 
actual parameters for macro 'min'
1>C:\Develop\install\include\liblas/index.hpp(234): warning C4003: not enough 
actual parameters for macro 'max'
...
...

Am I the only one with this problem under VS2010?

Frank


More information about the Liblas-devel mailing list