Skip to content

Commit

Permalink
use boost for lround, as it is not available on MSVC2012
Browse files Browse the repository at this point in the history
  • Loading branch information
chambbj committed May 16, 2014
1 parent 8bb016d commit 044a780
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/pdal/PointBuffer.hpp
Expand Up @@ -42,6 +42,7 @@
#include <boost/lexical_cast.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/interprocess/managed_shared_memory.hpp>
#include <boost/math/special_functions/round.hpp>

#include <pdal/pdal_internal.hpp>
#include <pdal/Bounds.hpp>
Expand Down Expand Up @@ -672,7 +673,7 @@ inline T PointBuffer::getFieldAs(pdal::Dimension const& dim,
try
{
if (std::is_integral<T>::value)
retval = boost::numeric_cast<T>(lround(val));
retval = boost::numeric_cast<T>(boost::math::lround(val));
else
retval = boost::numeric_cast<T>(val);
}
Expand Down

0 comments on commit 044a780

Please sign in to comment.