Needed std::

release/4.3a0
Richard Roberts 2013-08-09 18:50:15 +00:00
parent 1eae17561d
commit bb4ad176da
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ namespace gtsam {
Point2 reprojectionError(camera.project(*point) - measured_.at(i)); Point2 reprojectionError(camera.project(*point) - measured_.at(i));
overallError += noise_->distance( reprojectionError.vector() ); overallError += noise_->distance( reprojectionError.vector() );
} }
return sqrt(overallError); return std::sqrt(overallError);
}else{ // triangulation failed: we deactivate the factor, then the error should not contribute to the overall error }else{ // triangulation failed: we deactivate the factor, then the error should not contribute to the overall error
return 0.0; return 0.0;
} }