diff --git a/MMDevice/ImageMetadata.h b/MMDevice/ImageMetadata.h index 212d7b084..ee27aeae1 100644 --- a/MMDevice/ImageMetadata.h +++ b/MMDevice/ImageMetadata.h @@ -55,6 +55,9 @@ class MetadataError return message_; } + /// Implements std::exception interface. + virtual const char* what() const throw() { return message_.c_str(); } + private: std::string message_; };