linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bartosz Golaszewski <brgl@bgdev.pl>
To: "Jan Kundrát" <jan.kundrat@cesnet.cz>
Cc: "open list:GPIO SUBSYSTEM" <linux-gpio@vger.kernel.org>,
	Bartosz Golaszewski <bgolaszewski@baylibre.com>
Subject: Re: [libgpiod] bindings: cxx: fix building with clang's libc++
Date: Wed, 3 Feb 2021 13:30:12 +0100	[thread overview]
Message-ID: <CAMRc=Mcsk6ixfAbJk9sJArrkGg5jnjZe_qw_wuCJ07ZDrdQN7A@mail.gmail.com> (raw)
In-Reply-To: <b60a6c6efc4c41641e82dd5f91d036b97378de6b.1612312770.git.jan.kundrat@cesnet.cz>

On Wed, Feb 3, 2021 at 1:52 AM Jan Kundrát <jan.kundrat@cesnet.cz> wrote:
>
> 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
>
>

Applied, thanks!

Bartosz

      reply	other threads:[~2021-02-03 12:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-03  0:15 [libgpiod] bindings: cxx: fix building with clang's libc++ Jan Kundrát
2021-02-03 12:30 ` Bartosz Golaszewski [this message]

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='CAMRc=Mcsk6ixfAbJk9sJArrkGg5jnjZe_qw_wuCJ07ZDrdQN7A@mail.gmail.com' \
    --to=brgl@bgdev.pl \
    --cc=bgolaszewski@baylibre.com \
    --cc=jan.kundrat@cesnet.cz \
    --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).