-
Notifications
You must be signed in to change notification settings - Fork 263
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
[r19c] error: no matching constructor for initialization of 'std::shared_ptr<uint8_t []>' #950
Comments
https://wandbox.org/ shows that this compiles for gcc 7.1.0 and higher, but fails on any clang |
Seems this is a C++17 feature, and not one that libc++ supports yet. |
Yeah, that seems to be the case. This StackOverflow link looks relevant: https://stackoverflow.com/questions/13061979/shared-ptr-to-an-array-should-it-be-used |
@DanAlbert libc++ added support in https://reviews.llvm.org/rGce195fb22b542c20745e3ed46d1516e8b4e3a76f (v11) |
No timeline. Upstream redid how testing works so we have to redo all our infrastructure again. It's the next thing on my list but I have no idea how long it will take. |
Still an issue in 2023, NDK version 25.2.9519653. |
For anyone landing here from Google, looks like libc++ is finally updated in NDK 26 (according to #1530). NDK 26 is scheduled for release in September according to https://github.com/android/ndk/wiki#ndk-r26-lts |
Description
I am trying to use std::shared_ptr <uint8_t []> in my NDK application, but compiler throws below error.
The CMake looks like below
Environment Details
NDK Version: r19c (19.2.5345600)
Build sytem: any
Compiler: clang++
ABI: any
STL: libc++
NDK API level: 21
Device API level: n/a
The text was updated successfully, but these errors were encountered: