Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 446776 Details for
Bug 594382
mail-filter/mapson-3.3 : mapson.cpp:65:15: error: reference to 'system_error' is ambiguous
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
mapson-3.3-gcc6-add-system_error-namespace.patch
mapson-3.3-gcc6-add-system_error-namespace.patch (text/plain), 1.33 KB, created by
Peter Levine
on 2016-09-20 06:18:17 UTC
(
hide
)
Description:
mapson-3.3-gcc6-add-system_error-namespace.patch
Filename:
MIME Type:
Creator:
Peter Levine
Created:
2016-09-20 06:18:17 UTC
Size:
1.33 KB
patch
obsolete
>--- mapson-3.3/system-error.hpp.old 2016-09-20 02:06:37.063462214 -0400 >+++ mapson-3.3/system-error.hpp 2016-09-20 02:07:07.234782884 -0400 >@@ -23,6 +23,8 @@ > #include <string> > #include <cstring> > >+namespace Mapson { >+ > class system_error : public std::runtime_error > { > public: >@@ -43,4 +45,6 @@ > } > }; > >+} // namespace Mapson >+ > #endif >--- mapson-3.3/mapson.cpp.old 2016-09-20 02:09:24.212209925 -0400 >+++ mapson-3.3/mapson.cpp 2016-09-20 02:09:30.234738689 -0400 >@@ -62,7 +62,7 @@ > > fd = open(argv[i], O_RDONLY, 0); > if (fd < 0) >- throw system_error("Can't open file for reading"); >+ throw Mapson::system_error("Can't open file for reading"); > fd_sentry sentry(fd); > string mail; > for (rc = read(fd, buffer, sizeof(buffer)); >@@ -72,7 +72,7 @@ > mail.append(buffer, rc); > } > if (rc < 0) >- throw system_error("Failed to read from file"); >+ throw Mapson::system_error("Failed to read from file"); > > // Extract the mail addresses. > >@@ -196,7 +196,7 @@ > mail.append(buffer, rc); > } > if (rc < 0) >- throw system_error("Failed to read mail from standard input"); >+ throw Mapson::system_error("Failed to read mail from standard input"); > > // Check whether the mail contains a valid cookie. If it does, > // mail will be replaced with the original e-mail, that was
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 594382
:
446656
|
446658
|
446660
|
446776
|
473556