Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: implicit instantiation of undefined template 'std::array<double, 4>' #29

Closed
yurivict opened this issue Dec 7, 2023 · 1 comment

Comments

@yurivict
Copy link

yurivict commented Dec 7, 2023

std::array is used in chrono/timespan.cpp but there is no corresponding include:

wrkdirs/usr/ports/devel/cpp-utilities/work/cpp-utilities-5.24.3/chrono/timespan.cpp:74:18: error: implicit instantiation of undefined template 'std::array<double, 4>'
    auto parts = std::array<double, 4>(); 
                 ^                                             
/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                               ^
1 error generated.

Version: 5.24.3
clang-16
FreeBSD 13.2

Martchus added a commit that referenced this issue Dec 7, 2023
@Martchus
Copy link
Owner

Martchus commented Dec 7, 2023

I actually tested this with libc++ but only on GNU/Linux. Strange that it behaves differently with your version. I added the include. I suppose for easy fixes like that you could also just create a PR (instead of an issue).

@Martchus Martchus closed this as completed Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants