rwmem: Include <stdexcept> where it is missing
PATCH 1/1 rwmem: Include <stdexcept> where it is missing
Fixes
rwmem/opts.cpp:87:15: error: 'invalid_argument' is not a member of 'std'
throw std::invalid_argument(string("Unrecognized option ") + argv[optind - 1]);
^~~~~~~~~~~~~~~~Signed-off-by Khem Raj <[email protected]>
--- ...t-for-invalid_argument-and-out_of_ra.patch | 35 +++++++++++++++++++ recipes-bsp/rwmem/rwmem_1.2.bb | 1 + 2 files changed, 36 insertions(+) create mode 100644 recipes-bsp/rwmem/rwmem/0001-include-stdexcept-for-invalid_argument-and-out_of_ra.patch
recipes-bsp/rwmem/rwmem/0001-include-stdexcept-for-invalid_argument-and-out_of_ra.patch new file +35 -0
@@ -0,0 +1,35 @@ +From b5677a3461f4b44b78e74a6b46629606adad11c1 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Mon, 23 Dec 2019 15:52:15 -0800 +Subject: [PATCH] include <stdexcept> for invalid_argument and out_of_range + +Upstream-Status: Submitted [https://github.com/tomba/rwmem/pull/6] +Signed-off-by: Khem Raj <[email protected]> +--- + librwmem/regs.cpp | 1 + + rwmem/opts.cpp | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/librwmem/regs.cpp b/librwmem/regs.cpp +index 5e5c22f..669d10d 100644 +--- a/librwmem/regs.cpp ++++ b/librwmem/regs.cpp +@@ -1,4 +1,5 @@ + #include <memory> ++#include <stdexcept> + #include <cstdint> + #include <cstdlib> + #include <cstring> +diff --git a/rwmem/opts.cpp b/rwmem/opts.cpp +index 0a10567..e521d56 100644 +--- a/rwmem/opts.cpp ++++ b/rwmem/opts.cpp +@@ -1,4 +1,5 @@ + #include <algorithm> ++#include <stdexcept> + + #include <unistd.h> + #include <getopt.h> +-- +2.24.1 +
recipes-bsp/rwmem/rwmem_1.2.bb +1 -0
@@ -15,6 +15,7 @@ SRCREV_FORMAT = "rwmem_inih_pybind11" SRC_URI = "git://github.com/tomba/rwmem.git;protocol=https;name=rwmem \ git://github.com/benhoyt/inih.git;protocol=https;name=inih;nobranch=1;destsuffix=git/ext/inih \ git://github.com/pybind/pybind11.git;protocol=https;name=pybind11;nobranch=1;destsuffix=git/ext/pybind11 \ + file://0001-include-stdexcept-for-invalid_argument-and-out_of_ra.patch \ " S = "${WORKDIR}/git"
Signature · 1 line
2.24.1