[Liblas-commits] hg: C++03 std::bitset ctor takes unsigned long which is either 3...

liblas-commits at liblas.org liblas-commits at liblas.org
Thu Aug 26 17:15:54 EDT 2010


changeset b294d1f31d1f in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=b294d1f31d1f
summary: C++03 std::bitset ctor takes unsigned long which is either 32 or 64 bit depending on implementation. std::bitset ctor in C++0x takes unsigned long long as 64-bit long is supported. Cast all bitset numeric input to unsigned long which will be promoted to unsigned long long by C++0x implementations without warnings.

diffstat:

 src/lasclassification.cpp |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 56d386d35727 -r b294d1f31d1f src/lasclassification.cpp
--- a/src/lasclassification.cpp	Thu Aug 26 21:40:53 2010 +0100
+++ b/src/lasclassification.cpp	Thu Aug 26 22:15:44 2010 +0100
@@ -133,7 +133,7 @@
 {
     check_class_index(index);
 
-    bitset_type binval(static_cast<boost::uint64_t>(index));
+    bitset_type binval(static_cast<unsigned long>(index));
     binval <<= 0;
 
     // Store value in bits 0,1,2,3,4


More information about the Liblas-commits mailing list