diff --git a/include/boost/geometry/extensions/gis/io/shapefile/read.hpp b/include/boost/geometry/extensions/gis/io/shapefile/read.hpp index 5de6af7f9..de11af392 100644 --- a/include/boost/geometry/extensions/gis/io/shapefile/read.hpp +++ b/include/boost/geometry/extensions/gis/io/shapefile/read.hpp @@ -52,7 +52,7 @@ public: : m_msg(msg) {} - virtual char const* what() const noexcept + char const* what() const noexcept override { //return "Shapefile read error"; return m_msg.what(); diff --git a/include/boost/geometry/extensions/gis/io/shapelib/shape_creator.hpp b/include/boost/geometry/extensions/gis/io/shapelib/shape_creator.hpp index a2af9a0ed..71fdabd2d 100644 --- a/include/boost/geometry/extensions/gis/io/shapelib/shape_creator.hpp +++ b/include/boost/geometry/extensions/gis/io/shapelib/shape_creator.hpp @@ -32,7 +32,7 @@ public: : m_filename(filename) {} - virtual char const* what() const noexcept + char const* what() const noexcept override { return m_filename.c_str(); } diff --git a/include/boost/geometry/extensions/gis/io/wkb/detail/parser.hpp b/include/boost/geometry/extensions/gis/io/wkb/detail/parser.hpp index 1a4138983..a8e0e70ad 100644 --- a/include/boost/geometry/extensions/gis/io/wkb/detail/parser.hpp +++ b/include/boost/geometry/extensions/gis/io/wkb/detail/parser.hpp @@ -49,7 +49,7 @@ public: inline read_wkb_exception() {} - virtual char const* what() const noexcept + char const* what() const noexcept override { return "Boost.Geometry Read WKB exception"; }