aseprite / laf

A C++ library to create desktop applications
https://aseprite.github.io/laf/
MIT License
276 stars 60 forks source link

error: implicit instantiation of undefined template 'std::__1::array<base::Ref<os::Cursor>, 19>' #31

Closed yurivict closed 2 years ago

yurivict commented 3 years ago
/disk-samsung/freebsd-ports/graphics/aseprite/work/aseprite-1.2.28/laf/os/x11/system.cpp:44:51: error: implicit instantiation of undefined template 'std::__1::array<base::Ref<os::Cursor>, 19>'
std::array<CursorRef, int(NativeCursor::Cursors)> g_nativeCursors;
                                                  ^
/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                               ^
/disk-samsung/freebsd-ports/graphics/aseprite/work/aseprite-1.2.28/laf/os/x11/system.cpp:63:11: warning: enumeration value 'Cursors' not handled in switch [-Wswitch]
  switch (cursor) {
          ^

Did you forget to include <array>?

dacap commented 2 years ago

Hi @yurivict, I've updated the laf module and main branch of aseprite with a fix for this. Thanks!