Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 711138 Details for
Bug 790176
app-office/ledger-3.2.1 - /.../format.h: error: scoped_ptr does not name a type (maybe gcc-11 related)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
ledger-3.2.1-add-boost-1.76-compatibility.patch
ledger-3.2.1-add-boost-1.76-compatibility.patch (text/plain), 1.63 KB, created by
Small_Penguin
on 2021-05-25 12:57:02 UTC
(
hide
)
Description:
ledger-3.2.1-add-boost-1.76-compatibility.patch
Filename:
MIME Type:
Creator:
Small_Penguin
Created:
2021-05-25 12:57:02 UTC
Size:
1.63 KB
patch
obsolete
>From c4d9834d23ded06a43a334c0f2632228a8a62ae3 Mon Sep 17 00:00:00 2001 >From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> >Date: Mon, 19 Apr 2021 09:56:31 +0100 >Subject: [PATCH] ledger: revision bump (boost 1.76.0) > >This adds a patch for Boost 1.76 compatibility, taken from > > https://github.com/ledger/ledger/issues/2030 >--- >diff --git a/src/expr.cc b/src/expr.cc >index c8945d3..136fc97 100644 >--- a/src/expr.cc >+++ b/src/expr.cc >@@ -34,6 +34,7 @@ > #include "expr.h" > #include "parser.h" > #include "scope.h" >+#include <memory> > > namespace ledger { > >@@ -278,7 +279,7 @@ value_t expr_value(expr_t::ptr_op_t op) > value_t source_command(call_scope_t& args) > { > std::istream * in = NULL; >- scoped_ptr<ifstream> stream; >+ std::unique_ptr<ifstream> stream; > string pathname; > > if (args.has(0)) { >diff --git a/src/format.h b/src/format.h >index 15431cf..c12f1c9 100644 >--- a/src/format.h >+++ b/src/format.h >@@ -44,6 +44,7 @@ > > #include "expr.h" > #include "unistring.h" >+#include <memory> > > namespace ledger { > >@@ -65,7 +66,7 @@ class format_t : public expr_base_t<string>, public noncopyable > std::size_t min_width; > std::size_t max_width; > variant<string, expr_t> data; >- scoped_ptr<struct element_t> next; >+ std::unique_ptr<struct element_t> next; > > element_t() throw() > : supports_flags<>(), type(STRING), min_width(0), max_width(0) { >@@ -103,7 +104,7 @@ class format_t : public expr_base_t<string>, public noncopyable > void dump(std::ostream& out) const; > }; > >- scoped_ptr<element_t> elements; >+ std::unique_ptr<element_t> elements; > > public: > static enum elision_style_t {
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 790176
:
708432
|
708435
|
708438
|
708441
|
708444
|
708447
|
708450
| 711138