[Liblas-commits] hg: Removed use of std::copy_n which is available in C++0x only.

liblas-commits at liblas.org liblas-commits at liblas.org
Thu Jul 29 12:28:25 EDT 2010


changeset fe4def923c79 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=fe4def923c79
summary: Removed use of std::copy_n which is available in C++0x only.

diffstat:

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

diffs (12 lines):

diff -r 371f4d8914ee -r fe4def923c79 src/detail/writer/header.cpp
--- a/src/detail/writer/header.cpp	Thu Jul 29 17:25:59 2010 +0100
+++ b/src/detail/writer/header.cpp	Thu Jul 29 17:32:03 2010 +0100
@@ -218,7 +218,7 @@
     // TODO: fix this for 1.3, which has srbyr = 7;  See detail/reader/header.cpp for more details
     // assert(vpbr.size() <= srbyr);
     uint32_t pbr[srbyr] = { 0 };
-    std::copy_n(vpbr.begin(), srbyr, pbr); // FIXME: currently, copies only 5 records, to be improved
+    std::copy(vpbr.begin(), vpbr.begin() + srbyr, pbr); // FIXME: currently, copies only 5 records, to be improved
     detail::write_n(GetStream(), pbr, sizeof(pbr));
 
     // 20-22. Scale factors


More information about the Liblas-commits mailing list