Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | From 5f8eee5040d7074710cd542fc50f7a40918321fc Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 23 Dec 2019 14:30:22 -0800 |
| 4 | Subject: [PATCH] include <stdexcept> for runtime_error |
| 5 | |
| 6 | Fixes |
| 7 | |
| 8 | error: class 'libdnf::ModulePackageContainer::Exception' does not have any field named 'runtime_error' |
| 9 | explicit Exception(const std::string &what) : runtime_error(what) {} |
| 10 | ^~~~~~~~~~~~~ |
| 11 | |
| 12 | Upstream-Status: Submitted [https://github.com/rpm-software-management/libdnf/pull/867] |
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 14 | --- |
| 15 | libdnf/goal/Goal.hpp | 1 + |
| 16 | libdnf/module/ModulePackageContainer.hpp | 1 + |
| 17 | libdnf/repo/solvable/Dependency.cpp | 3 ++- |
| 18 | 3 files changed, 4 insertions(+), 1 deletion(-) |
| 19 | |
| 20 | diff --git a/libdnf/goal/Goal.hpp b/libdnf/goal/Goal.hpp |
| 21 | index f33dfa24..7b8d822c 100644 |
| 22 | --- a/libdnf/goal/Goal.hpp |
| 23 | +++ b/libdnf/goal/Goal.hpp |
| 24 | @@ -22,6 +22,7 @@ |
| 25 | #define __GOAL_HPP |
| 26 | |
| 27 | #include <memory> |
| 28 | +#include <stdexcept> |
| 29 | |
| 30 | #include "../dnf-types.h" |
| 31 | #include "../hy-goal.h" |
| 32 | diff --git a/libdnf/module/ModulePackageContainer.hpp b/libdnf/module/ModulePackageContainer.hpp |
| 33 | index 1f815fda..37a8832d 100644 |
| 34 | --- a/libdnf/module/ModulePackageContainer.hpp |
| 35 | +++ b/libdnf/module/ModulePackageContainer.hpp |
| 36 | @@ -30,6 +30,7 @@ |
| 37 | #include <string> |
| 38 | #include <vector> |
| 39 | #include <set> |
| 40 | +#include <stdexcept> |
| 41 | |
| 42 | //class ModulePackageContainer; |
| 43 | //typedef std::shared_ptr<ModulePackageContainer> ModulePackageContainerPtr; |
| 44 | diff --git a/libdnf/repo/solvable/Dependency.cpp b/libdnf/repo/solvable/Dependency.cpp |
| 45 | index 6682b729..0fc8b5cd 100644 |
| 46 | --- a/libdnf/repo/solvable/Dependency.cpp |
| 47 | +++ b/libdnf/repo/solvable/Dependency.cpp |
| 48 | @@ -18,6 +18,7 @@ |
| 49 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 50 | */ |
| 51 | |
| 52 | +#include <stdexcept> |
| 53 | #include "Dependency.hpp" |
| 54 | #include "libdnf/utils/utils.hpp" |
| 55 | #include "libdnf/repo/DependencySplitter.hpp" |
| 56 | @@ -106,4 +107,4 @@ Dependency::getReldepId(DnfSack *sack, const char * reldepStr) |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | -} |
| 61 | \ No newline at end of file |
| 62 | +} |
| 63 | -- |
| 64 | 2.24.1 |
| 65 | |