diff options
author | David Robillard <d@drobilla.net> | 2020-10-31 13:00:49 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-10-31 13:00:49 +0100 |
commit | 5676ec170aab822f01523fb65a634ca822ee0d03 (patch) | |
tree | f86157c15c1a3dfc241d3801f184cef2672510ca /bindings/cxx/include/pugl/pugl.ipp | |
parent | 5d7ddd8c2d714439ad07b54622600b11a9e980a0 (diff) | |
download | pugl-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.ipp | 6 |
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&) { |