bindings: cxx: fix building with clang's libc++
authorJan Kundrát <jan.kundrat@cesnet.cz>
Wed, 3 Feb 2021 12:28:57 +0000 (13:28 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 3 Feb 2021 12:30:22 +0000 (13:30 +0100)
commit3e47f2ba9853f46b18d97b7c00950bd33a947d70
treefe9b6d598209d92c1659cf8a9e8cea72d7acd618
parent38d92cc7a68028876df9edaecc50dfca28858914
bindings: cxx: fix building with clang's libc++

This fixes the following error with 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>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
bindings/cxx/line.cpp