From: "Jan Kundrát" <jan.kundrat@cesnet.cz>
To: linux-gpio@vger.kernel.org
Cc: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Subject: [libgpiod] bindings: cxx: fix building with clang's libc++
Date: Wed, 3 Feb 2021 01:15:53 +0100 [thread overview]
Message-ID: <b60a6c6efc4c41641e82dd5f91d036b97378de6b.1612312770.git.jan.kundrat@cesnet.cz> (raw)
This is what I get on clang 11 with libc++:
line.cpp:248:39: error: implicit instantiation of undefined template 'std::__1::array<gpiod_line_event, 16>'
::std::array<::gpiod_line_event, 16> event_buf;
^
/nix/store/vk8ynr4hj2a8w7g1b9m8wknzj39iiv4x-libc++-11.0.1/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
Signed-off-by: Jan Kundrát <jan.kundrat@cesnet.cz>
---
bindings/cxx/line.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git bindings/cxx/line.cpp bindings/cxx/line.cpp
index bf4a3eb..9b66d1a 100644
--- bindings/cxx/line.cpp
+++ bindings/cxx/line.cpp
@@ -6,6 +6,7 @@
*/
#include <gpiod.hpp>
+#include <array>
#include <map>
#include <system_error>
--
2.29.0
next reply other threads:[~2021-02-03 0:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-03 0:15 Jan Kundrát [this message]
2021-02-03 12:30 ` [libgpiod] bindings: cxx: fix building with clang's libc++ Bartosz Golaszewski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b60a6c6efc4c41641e82dd5f91d036b97378de6b.1612312770.git.jan.kundrat@cesnet.cz \
--to=jan.kundrat@cesnet.cz \
--cc=bgolaszewski@baylibre.com \
--cc=linux-gpio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).