Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
3843972b
Commit
3843972b
authored
Dec 29, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
command/Error: workaround for gcc 4.x rethrow_exception(exception_ptr)
parent
37862f0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
CommandError.cxx
src/command/CommandError.cxx
+10
-0
No files found.
src/command/CommandError.cxx
View file @
3843972b
...
...
@@ -170,9 +170,19 @@ ToAck(std::exception_ptr ep)
return
ToAck
(
pe
.
GetCode
());
}
catch
(
const
std
::
system_error
&
e
)
{
return
ACK_ERROR_SYSTEM
;
#if defined(__GLIBCXX__) && __GLIBCXX__ < 20151204
}
catch
(
const
std
::
exception
&
e
)
{
#else
}
catch
(...)
{
#endif
try
{
#if defined(__GLIBCXX__) && __GLIBCXX__ < 20151204
/* workaround for g++ 4.x: no overload for
rethrow_exception(exception_ptr) */
std
::
rethrow_if_nested
(
e
);
#else
std
::
rethrow_if_nested
(
ep
);
#endif
return
ACK_ERROR_UNKNOWN
;
}
catch
(...)
{
return
ToAck
(
std
::
current_exception
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment