boost-1.73.patch 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. Qualify placeholders
  2. Matteo Bernardini <ponce@slackbuilds.org>
  3. diff -Naur libLAS-1.8.1.orig/src/c_api.cpp libLAS-1.8.1/src/c_api.cpp
  4. --- libLAS-1.8.1.orig/src/c_api.cpp 2016-08-22 15:06:34.000000000 +0200
  5. +++ libLAS-1.8.1/src/c_api.cpp 2020-08-04 14:54:22.311996000 +0200
  6. @@ -498,7 +498,7 @@
  7. transforms.erase( std::remove_if( transforms.begin(),
  8. transforms.end(),
  9. - boost::bind( &IsReprojectionTransform, _1 ) ),
  10. + boost::bind( &IsReprojectionTransform, boost::placeholders::_1 ) ),
  11. transforms.end());
  12. liblas::TransformPtr srs_transform = liblas::TransformPtr(new liblas::ReprojectionTransform(in_ref, *out_ref, &h));
  13. @@ -1840,7 +1840,7 @@
  14. transforms.erase( std::remove_if( transforms.begin(),
  15. transforms.end(),
  16. - boost::bind( &IsReprojectionTransform, _1 ) ),
  17. + boost::bind( &IsReprojectionTransform, boost::placeholders::_1 ) ),
  18. transforms.end());
  19. liblas::TransformPtr srs_transform = liblas::TransformPtr(new liblas::ReprojectionTransform(in_ref, *out_ref, &h));
  20. diff -Naur libLAS-1.8.1.orig/src/header.cpp libLAS-1.8.1/src/header.cpp
  21. --- libLAS-1.8.1.orig/src/header.cpp 2016-08-22 15:06:34.000000000 +0200
  22. +++ libLAS-1.8.1/src/header.cpp 2020-08-04 14:53:36.599996000 +0200
  23. @@ -610,7 +610,7 @@
  24. m_vlrs.erase( std::remove_if( m_vlrs.begin(),
  25. m_vlrs.end(),
  26. - boost::bind( &SameVLRs, name, id, _1 ) ),
  27. + boost::bind( &SameVLRs, name, id, boost::placeholders::_1 ) ),
  28. m_vlrs.end());
  29. m_recordsCount = static_cast<uint32_t>(m_vlrs.size());