aboutsummaryrefslogtreecommitdiffstats
path: root/bindings/cxx/include/pugl/pugl.ipp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-31 13:00:49 +0100
committerDavid Robillard <d@drobilla.net>2020-10-31 13:00:49 +0100
commit5676ec170aab822f01523fb65a634ca822ee0d03 (patch)
treef86157c15c1a3dfc241d3801f184cef2672510ca /bindings/cxx/include/pugl/pugl.ipp
parent5d7ddd8c2d714439ad07b54622600b11a9e980a0 (diff)
downloadpugl-5676ec170aab822f01523fb65a634ca822ee0d03.tar.gz
pugl-5676ec170aab822f01523fb65a634ca822ee0d03.tar.bz2
pugl-5676ec170aab822f01523fb65a634ca822ee0d03.zip
Use a custom exception type for failed construction
This avoids an include of <exception>, which is slow, and is better practice anyway.
Diffstat (limited to 'bindings/cxx/include/pugl/pugl.ipp')
-rw-r--r--bindings/cxx/include/pugl/pugl.ipp6
1 files changed, 6 insertions, 0 deletions
diff --git a/bindings/cxx/include/pugl/pugl.ipp b/bindings/cxx/include/pugl/pugl.ipp
index 59fb806..b90c878 100644
--- a/bindings/cxx/include/pugl/pugl.ipp
+++ b/bindings/cxx/include/pugl/pugl.ipp
@@ -25,6 +25,12 @@
namespace pugl {
+const char*
+FailedConstructionError::what() const noexcept
+{
+ return _msg;
+}
+
Status
View::onCreate(const CreateEvent&)
{