From 7578534dc8d0758b236411179ebbb252fbca8a5c Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Wed, 1 Feb 2017 21:54:27 -0800 Subject: [PATCH] pass std::string to std::out_of_range --- include/mapnik/box2d_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mapnik/box2d_impl.hpp b/include/mapnik/box2d_impl.hpp index 7f3e9d1e7..9df14e177 100644 --- a/include/mapnik/box2d_impl.hpp +++ b/include/mapnik/box2d_impl.hpp @@ -466,7 +466,7 @@ T box2d::operator[] (int index) const case -1: return maxy_; default: - throw std::out_of_range("index out of range, max value is 3, min value is -4 "); + throw std::out_of_range(std::string("index out of range, max value is 3, min value is -4 ")); } }