We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 977e2f9 commit fe20c71Copy full SHA for fe20c71
1 file changed
src/include/OpenImageIO/imageio.h
@@ -1143,10 +1143,10 @@ class OIIO_API ImageInput {
1143
///
1144
/// @returns
1145
/// `true` upon success, or `false` upon failure.
1146
- virtual bool valid_file (const std::string& filename) const;
+ OIIO_NODISCARD_ERROR virtual bool valid_file (const std::string& filename) const;
1147
1148
/// Check valid file using a UTF-16 encoded wstring filename.
1149
- bool valid_file (const std::wstring& filename) const {
+ OIIO_NODISCARD_ERROR bool valid_file (const std::wstring& filename) const {
1150
return valid_file(Strutil::utf16_to_utf8(filename));
1151
}
1152
0 commit comments