Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:Update
vncmanager
U_make_eof_exception_publicly_inherited_from_st...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File U_make_eof_exception_publicly_inherited_from_std_exception.patch of Package vncmanager
From ac432c1a6e0c2db26535de9763916b06d21f9f8d Mon Sep 17 00:00:00 2001 From: Michal Srb <michalsrb@gmail.com> Date: Tue, 9 May 2017 18:00:27 +0300 Subject: [PATCH] Make eof_exception publicly inherited from std::exception. diff --git a/helper.h b/helper.h index d669d83..f7b748c 100644 --- a/helper.h +++ b/helper.h @@ -61,7 +61,12 @@ inline void throw_errno(const std::string &what_arg) /** * EOF for Stream. */ -class eof_exception : std::exception {}; // TODO: Move/change? +class eof_exception : public std::exception { +public: + virtual const char* what() const noexcept { + return "EOF"; + } +}; /** * Helper class that can be used to assure closing of file descriptor on scope exit.
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor