Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In file included from ./frameworks/native/include/binder/Parcel.h:25,
- from ./frameworks/native/cmds/service/service.cpp:17:
- ./system/libbase/include/android-base/unique_fd.h:105:57: error: ‘clang::reinitializes’ scoped attribute directive ignored [-Werror=attributes]
- 105 | [[clang::reinitializes]] void reset(int new_value = -1) { reset(new_value, nullptr); }
- | ^
- ./system/libbase/include/android-base/unique_fd.h:283:65: error: ‘unavailable’ attribute directive ignored [-Werror=attributes]
- 283 | __attribute__((__unavailable__("close called on unique_fd")));
- | ^
- ./system/libbase/include/android-base/unique_fd.h:288:97: error: ‘unavailable’ attribute directive ignored [-Werror=attributes]
- 288 | "unique_fd, or use android::base::Fdopen to pass ownership")));
- | ^
- ./system/libbase/include/android-base/unique_fd.h:293:85: error: ‘unavailable’ attribute directive ignored [-Werror=attributes]
- 293 | "unique_fd, or use android::base::Fdopendir to pass ownership")));
- | ^
- In file included from ./frameworks/native/include/binder/Parcel.h:29,
- from ./frameworks/native/cmds/service/service.cpp:17:
- ./system/core/libutils/include/utils/String16.h:228:71: error: expected constructor, destructor, or type conversion before ‘;’ token
- 228 | StaticString16(const F&)->StaticString16<sizeof(F) / sizeof(char16_t)>;
- | ^
- In file included from ./frameworks/native/include/binder/Parcel.h:30,
- from ./frameworks/native/cmds/service/service.cpp:17:
- ./system/core/libutils/include/utils/Vector.h: In member function ‘const android::Vector<TYPE>& android::Vector<TYPE>::operator=(const android::Vector<TYPE>&) const’:
- ./system/core/libutils/include/utils/Vector.h:259:64: error: cannot convert ‘const android::Vector<TYPE>*’ to ‘android::VectorImpl*’
- 259 | VectorImpl::operator = (static_cast<const VectorImpl&>(rhs));
- | ^
- In file included from ./system/core/libutils/include/utils/Vector.h:25,
- from ./frameworks/native/include/binder/Parcel.h:30,
- from ./frameworks/native/cmds/service/service.cpp:17:
- ./system/core/libutils/include/utils/VectorImpl.h:56:59: note: initializing argument 'this' of ‘android::VectorImpl& android::VectorImpl::operator=(const android::VectorImpl&)’
- 56 | VectorImpl& operator = (const VectorImpl& rhs);
- | ~~~~~~~~~~~~~~~~~~^~~
- In file included from ./frameworks/native/include/binder/Parcel.h:30,
- from ./frameworks/native/cmds/service/service.cpp:17:
- ./system/core/libutils/include/utils/Vector.h: At global scope:
- ./system/core/libutils/include/utils/Vector.h:397:80: error: ‘cfi’ attribute directive ignored [-Werror=attributes]
- 397 | UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_construct(void* storage, size_t num) const {
- | ^~~~~
- ./system/core/libutils/include/utils/Vector.h:407:90: error: ‘cfi’ attribute directive ignored [-Werror=attributes]
- 407 | UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_copy(void* dest, const void* from, size_t num) const {
- | ^~~~~
- ./system/core/libutils/include/utils/Vector.h:412:91: error: ‘cfi’ attribute directive ignored [-Werror=attributes]
- 412 | UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_splat(void* dest, const void* item, size_t num) const {
- | ^~~~~
- ./system/core/libutils/include/utils/Vector.h:417:98: error: ‘cfi’ attribute directive ignored [-Werror=attributes]
- 417 | UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_move_forward(void* dest, const void* from, size_t num) const {
- | ^~~~~
- ./system/core/libutils/include/utils/Vector.h:422:99: error: ‘cfi’ attribute directive ignored [-Werror=attributes]
- 422 | UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_move_backward(void* dest, const void* from, size_t num) const {
- | ^~~~~
- In file included from ./frameworks/native/include/binder/Binder.h:22,
- from ./frameworks/native/include/binder/IInterface.h:21,
- from ./frameworks/native/include/binder/Parcel.h:33,
- from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/IBinder.h:49:40: error: ‘clang::lto_visibility_public’ scoped attribute directive ignored [-Werror=attributes]
- 49 | class [[clang::lto_visibility_public]] IBinder : public virtual RefBase
- | ^~~~~~~
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:125:50: error: ‘optional’ in namespace ‘std’ does not name a template type
- 125 | status_t writeString16(const std::optional<String16>& str);
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:125:45: note: ‘std::optional’ is only available from C++17 onwards
- 125 | status_t writeString16(const std::optional<String16>& str);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:125:58: error: expected ‘,’ or ‘...’ before ‘<’ token
- 125 | status_t writeString16(const std::optional<String16>& str);
- | ^
- ./frameworks/native/include/binder/Parcel.h:126:50: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 126 | status_t writeString16(const std::unique_ptr<String16>& str);
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:35:1: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 34 | #include <binder/Parcelable.h>
- +++ |+#include <memory>
- 35 |
- ./frameworks/native/include/binder/Parcel.h:126:60: error: expected ‘,’ or ‘...’ before ‘<’ token
- 126 | status_t writeString16(const std::unique_ptr<String16>& str);
- | ^
- ./frameworks/native/include/binder/Parcel.h:126:25: error: ‘android::status_t android::Parcel::writeString16(int)’ cannot be overloaded with ‘android::status_t android::Parcel::writeString16(int)’
- 126 | status_t writeString16(const std::unique_ptr<String16>& str);
- | ^~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:125:25: note: previous declaration ‘android::status_t android::Parcel::writeString16(int)’
- 125 | status_t writeString16(const std::optional<String16>& str);
- | ^~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:137:53: error: ‘optional’ in namespace ‘std’ does not name a template type
- 137 | status_t writeUtf8AsUtf16(const std::optional<std::string>& str);
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:137:48: note: ‘std::optional’ is only available from C++17 onwards
- 137 | status_t writeUtf8AsUtf16(const std::optional<std::string>& str);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:137:61: error: expected ‘,’ or ‘...’ before ‘<’ token
- 137 | status_t writeUtf8AsUtf16(const std::optional<std::string>& str);
- | ^
- ./frameworks/native/include/binder/Parcel.h:138:53: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 138 | status_t writeUtf8AsUtf16(const std::unique_ptr<std::string>& str);
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:138:48: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 138 | status_t writeUtf8AsUtf16(const std::unique_ptr<std::string>& str);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:138:63: error: expected ‘,’ or ‘...’ before ‘<’ token
- 138 | status_t writeUtf8AsUtf16(const std::unique_ptr<std::string>& str);
- | ^
- ./frameworks/native/include/binder/Parcel.h:138:25: error: ‘android::status_t android::Parcel::writeUtf8AsUtf16(int)’ cannot be overloaded with ‘android::status_t android::Parcel::writeUtf8AsUtf16(int)’
- 138 | status_t writeUtf8AsUtf16(const std::unique_ptr<std::string>& str);
- | ^~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:137:25: note: previous declaration ‘android::status_t android::Parcel::writeUtf8AsUtf16(int)’
- 137 | status_t writeUtf8AsUtf16(const std::optional<std::string>& str);
- | ^~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:140:52: error: ‘optional’ in namespace ‘std’ does not name a template type
- 140 | status_t writeByteVector(const std::optional<std::vector<int8_t>>& val);
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:140:47: note: ‘std::optional’ is only available from C++17 onwards
- 140 | status_t writeByteVector(const std::optional<std::vector<int8_t>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:140:60: error: expected ‘,’ or ‘...’ before ‘<’ token
- 140 | status_t writeByteVector(const std::optional<std::vector<int8_t>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:141:52: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 141 | status_t writeByteVector(const std::unique_ptr<std::vector<int8_t>>& val);
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:141:47: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 141 | status_t writeByteVector(const std::unique_ptr<std::vector<int8_t>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:141:62: error: expected ‘,’ or ‘...’ before ‘<’ token
- 141 | status_t writeByteVector(const std::unique_ptr<std::vector<int8_t>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:141:25: error: ‘android::status_t android::Parcel::writeByteVector(int)’ cannot be overloaded with ‘android::status_t android::Parcel::writeByteVector(int)’
- 141 | status_t writeByteVector(const std::unique_ptr<std::vector<int8_t>>& val);
- | ^~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:140:25: note: previous declaration ‘android::status_t android::Parcel::writeByteVector(int)’
- 140 | status_t writeByteVector(const std::optional<std::vector<int8_t>>& val);
- | ^~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:143:52: error: ‘optional’ in namespace ‘std’ does not name a template type
- 143 | status_t writeByteVector(const std::optional<std::vector<uint8_t>>& val);
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:143:47: note: ‘std::optional’ is only available from C++17 onwards
- 143 | status_t writeByteVector(const std::optional<std::vector<uint8_t>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:143:60: error: expected ‘,’ or ‘...’ before ‘<’ token
- 143 | status_t writeByteVector(const std::optional<std::vector<uint8_t>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:143:25: error: ‘android::status_t android::Parcel::writeByteVector(int)’ cannot be overloaded with ‘android::status_t android::Parcel::writeByteVector(int)’
- 143 | status_t writeByteVector(const std::optional<std::vector<uint8_t>>& val);
- | ^~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:140:25: note: previous declaration ‘android::status_t android::Parcel::writeByteVector(int)’
- 140 | status_t writeByteVector(const std::optional<std::vector<int8_t>>& val);
- | ^~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:144:52: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 144 | status_t writeByteVector(const std::unique_ptr<std::vector<uint8_t>>& val);
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:144:47: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 144 | status_t writeByteVector(const std::unique_ptr<std::vector<uint8_t>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:144:62: error: expected ‘,’ or ‘...’ before ‘<’ token
- 144 | status_t writeByteVector(const std::unique_ptr<std::vector<uint8_t>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:144:25: error: ‘android::status_t android::Parcel::writeByteVector(int)’ cannot be overloaded with ‘android::status_t android::Parcel::writeByteVector(int)’
- 144 | status_t writeByteVector(const std::unique_ptr<std::vector<uint8_t>>& val);
- | ^~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:140:25: note: previous declaration ‘android::status_t android::Parcel::writeByteVector(int)’
- 140 | status_t writeByteVector(const std::optional<std::vector<int8_t>>& val);
- | ^~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:146:53: error: ‘optional’ in namespace ‘std’ does not name a template type
- 146 | status_t writeInt32Vector(const std::optional<std::vector<int32_t>>& val);
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:146:48: note: ‘std::optional’ is only available from C++17 onwards
- 146 | status_t writeInt32Vector(const std::optional<std::vector<int32_t>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:146:61: error: expected ‘,’ or ‘...’ before ‘<’ token
- 146 | status_t writeInt32Vector(const std::optional<std::vector<int32_t>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:147:53: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 147 | status_t writeInt32Vector(const std::unique_ptr<std::vector<int32_t>>& val);
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:147:48: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 147 | status_t writeInt32Vector(const std::unique_ptr<std::vector<int32_t>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:147:63: error: expected ‘,’ or ‘...’ before ‘<’ token
- 147 | status_t writeInt32Vector(const std::unique_ptr<std::vector<int32_t>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:147:25: error: ‘android::status_t android::Parcel::writeInt32Vector(int)’ cannot be overloaded with ‘android::status_t android::Parcel::writeInt32Vector(int)’
- 147 | status_t writeInt32Vector(const std::unique_ptr<std::vector<int32_t>>& val);
- | ^~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:146:25: note: previous declaration ‘android::status_t android::Parcel::writeInt32Vector(int)’
- 146 | status_t writeInt32Vector(const std::optional<std::vector<int32_t>>& val);
- | ^~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:149:53: error: ‘optional’ in namespace ‘std’ does not name a template type
- 149 | status_t writeInt64Vector(const std::optional<std::vector<int64_t>>& val);
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:149:48: note: ‘std::optional’ is only available from C++17 onwards
- 149 | status_t writeInt64Vector(const std::optional<std::vector<int64_t>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:149:61: error: expected ‘,’ or ‘...’ before ‘<’ token
- 149 | status_t writeInt64Vector(const std::optional<std::vector<int64_t>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:150:53: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 150 | status_t writeInt64Vector(const std::unique_ptr<std::vector<int64_t>>& val);
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:150:48: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 150 | status_t writeInt64Vector(const std::unique_ptr<std::vector<int64_t>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:150:63: error: expected ‘,’ or ‘...’ before ‘<’ token
- 150 | status_t writeInt64Vector(const std::unique_ptr<std::vector<int64_t>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:150:25: error: ‘android::status_t android::Parcel::writeInt64Vector(int)’ cannot be overloaded with ‘android::status_t android::Parcel::writeInt64Vector(int)’
- 150 | status_t writeInt64Vector(const std::unique_ptr<std::vector<int64_t>>& val);
- | ^~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:149:25: note: previous declaration ‘android::status_t android::Parcel::writeInt64Vector(int)’
- 149 | status_t writeInt64Vector(const std::optional<std::vector<int64_t>>& val);
- | ^~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:152:54: error: ‘optional’ in namespace ‘std’ does not name a template type
- 152 | status_t writeUint64Vector(const std::optional<std::vector<uint64_t>>& val);
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:152:49: note: ‘std::optional’ is only available from C++17 onwards
- 152 | status_t writeUint64Vector(const std::optional<std::vector<uint64_t>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:152:62: error: expected ‘,’ or ‘...’ before ‘<’ token
- 152 | status_t writeUint64Vector(const std::optional<std::vector<uint64_t>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:153:54: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 153 | status_t writeUint64Vector(const std::unique_ptr<std::vector<uint64_t>>& val);
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:153:49: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 153 | status_t writeUint64Vector(const std::unique_ptr<std::vector<uint64_t>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:153:64: error: expected ‘,’ or ‘...’ before ‘<’ token
- 153 | status_t writeUint64Vector(const std::unique_ptr<std::vector<uint64_t>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:153:25: error: ‘android::status_t android::Parcel::writeUint64Vector(int)’ cannot be overloaded with ‘android::status_t android::Parcel::writeUint64Vector(int)’
- 153 | status_t writeUint64Vector(const std::unique_ptr<std::vector<uint64_t>>& val);
- | ^~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:152:25: note: previous declaration ‘android::status_t android::Parcel::writeUint64Vector(int)’
- 152 | status_t writeUint64Vector(const std::optional<std::vector<uint64_t>>& val);
- | ^~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:155:53: error: ‘optional’ in namespace ‘std’ does not name a template type
- 155 | status_t writeFloatVector(const std::optional<std::vector<float>>& val);
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:155:48: note: ‘std::optional’ is only available from C++17 onwards
- 155 | status_t writeFloatVector(const std::optional<std::vector<float>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:155:61: error: expected ‘,’ or ‘...’ before ‘<’ token
- 155 | status_t writeFloatVector(const std::optional<std::vector<float>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:156:53: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 156 | status_t writeFloatVector(const std::unique_ptr<std::vector<float>>& val);
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:156:48: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 156 | status_t writeFloatVector(const std::unique_ptr<std::vector<float>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:156:63: error: expected ‘,’ or ‘...’ before ‘<’ token
- 156 | status_t writeFloatVector(const std::unique_ptr<std::vector<float>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:156:25: error: ‘android::status_t android::Parcel::writeFloatVector(int)’ cannot be overloaded with ‘android::status_t android::Parcel::writeFloatVector(int)’
- 156 | status_t writeFloatVector(const std::unique_ptr<std::vector<float>>& val);
- | ^~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:155:25: note: previous declaration ‘android::status_t android::Parcel::writeFloatVector(int)’
- 155 | status_t writeFloatVector(const std::optional<std::vector<float>>& val);
- | ^~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:158:54: error: ‘optional’ in namespace ‘std’ does not name a template type
- 158 | status_t writeDoubleVector(const std::optional<std::vector<double>>& val);
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:158:49: note: ‘std::optional’ is only available from C++17 onwards
- 158 | status_t writeDoubleVector(const std::optional<std::vector<double>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:158:62: error: expected ‘,’ or ‘...’ before ‘<’ token
- 158 | status_t writeDoubleVector(const std::optional<std::vector<double>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:159:54: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 159 | status_t writeDoubleVector(const std::unique_ptr<std::vector<double>>& val);
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:159:49: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 159 | status_t writeDoubleVector(const std::unique_ptr<std::vector<double>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:159:64: error: expected ‘,’ or ‘...’ before ‘<’ token
- 159 | status_t writeDoubleVector(const std::unique_ptr<std::vector<double>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:159:25: error: ‘android::status_t android::Parcel::writeDoubleVector(int)’ cannot be overloaded with ‘android::status_t android::Parcel::writeDoubleVector(int)’
- 159 | status_t writeDoubleVector(const std::unique_ptr<std::vector<double>>& val);
- | ^~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:158:25: note: previous declaration ‘android::status_t android::Parcel::writeDoubleVector(int)’
- 158 | status_t writeDoubleVector(const std::optional<std::vector<double>>& val);
- | ^~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:161:52: error: ‘optional’ in namespace ‘std’ does not name a template type
- 161 | status_t writeBoolVector(const std::optional<std::vector<bool>>& val);
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:161:47: note: ‘std::optional’ is only available from C++17 onwards
- 161 | status_t writeBoolVector(const std::optional<std::vector<bool>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:161:60: error: expected ‘,’ or ‘...’ before ‘<’ token
- 161 | status_t writeBoolVector(const std::optional<std::vector<bool>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:162:52: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 162 | status_t writeBoolVector(const std::unique_ptr<std::vector<bool>>& val);
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:162:47: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 162 | status_t writeBoolVector(const std::unique_ptr<std::vector<bool>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:162:62: error: expected ‘,’ or ‘...’ before ‘<’ token
- 162 | status_t writeBoolVector(const std::unique_ptr<std::vector<bool>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:162:25: error: ‘android::status_t android::Parcel::writeBoolVector(int)’ cannot be overloaded with ‘android::status_t android::Parcel::writeBoolVector(int)’
- 162 | status_t writeBoolVector(const std::unique_ptr<std::vector<bool>>& val);
- | ^~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:161:25: note: previous declaration ‘android::status_t android::Parcel::writeBoolVector(int)’
- 161 | status_t writeBoolVector(const std::optional<std::vector<bool>>& val);
- | ^~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:164:52: error: ‘optional’ in namespace ‘std’ does not name a template type
- 164 | status_t writeCharVector(const std::optional<std::vector<char16_t>>& val);
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:164:47: note: ‘std::optional’ is only available from C++17 onwards
- 164 | status_t writeCharVector(const std::optional<std::vector<char16_t>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:164:60: error: expected ‘,’ or ‘...’ before ‘<’ token
- 164 | status_t writeCharVector(const std::optional<std::vector<char16_t>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:165:52: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 165 | status_t writeCharVector(const std::unique_ptr<std::vector<char16_t>>& val);
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:165:47: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 165 | status_t writeCharVector(const std::unique_ptr<std::vector<char16_t>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:165:62: error: expected ‘,’ or ‘...’ before ‘<’ token
- 165 | status_t writeCharVector(const std::unique_ptr<std::vector<char16_t>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:165:25: error: ‘android::status_t android::Parcel::writeCharVector(int)’ cannot be overloaded with ‘android::status_t android::Parcel::writeCharVector(int)’
- 165 | status_t writeCharVector(const std::unique_ptr<std::vector<char16_t>>& val);
- | ^~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:164:25: note: previous declaration ‘android::status_t android::Parcel::writeCharVector(int)’
- 164 | status_t writeCharVector(const std::optional<std::vector<char16_t>>& val);
- | ^~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:168:40: error: ‘optional’ in namespace ‘std’ does not name a template type
- 168 | const std::optional<std::vector<std::optional<String16>>>& val);
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:168:35: note: ‘std::optional’ is only available from C++17 onwards
- 168 | const std::optional<std::vector<std::optional<String16>>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:168:48: error: expected ‘,’ or ‘...’ before ‘<’ token
- 168 | const std::optional<std::vector<std::optional<String16>>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:170:40: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 170 | const std::unique_ptr<std::vector<std::unique_ptr<String16>>>& val);
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:170:35: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 170 | const std::unique_ptr<std::vector<std::unique_ptr<String16>>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:170:50: error: expected ‘,’ or ‘...’ before ‘<’ token
- 170 | const std::unique_ptr<std::vector<std::unique_ptr<String16>>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:169:25: error: ‘android::status_t android::Parcel::writeString16Vector(int)’ cannot be overloaded with ‘android::status_t android::Parcel::writeString16Vector(int)’
- 169 | status_t writeString16Vector(
- | ^~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:167:25: note: previous declaration ‘android::status_t android::Parcel::writeString16Vector(int)’
- 167 | status_t writeString16Vector(
- | ^~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:173:40: error: ‘optional’ in namespace ‘std’ does not name a template type
- 173 | const std::optional<std::vector<std::optional<std::string>>>& val);
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:173:35: note: ‘std::optional’ is only available from C++17 onwards
- 173 | const std::optional<std::vector<std::optional<std::string>>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:173:48: error: expected ‘,’ or ‘...’ before ‘<’ token
- 173 | const std::optional<std::vector<std::optional<std::string>>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:175:40: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 175 | const std::unique_ptr<std::vector<std::unique_ptr<std::string>>>& val);
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:175:35: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 175 | const std::unique_ptr<std::vector<std::unique_ptr<std::string>>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:175:50: error: expected ‘,’ or ‘...’ before ‘<’ token
- 175 | const std::unique_ptr<std::vector<std::unique_ptr<std::string>>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:174:25: error: ‘android::status_t android::Parcel::writeUtf8VectorAsUtf16Vector(int)’ cannot be overloaded with ‘android::status_t android::Parcel::writeUtf8VectorAsUtf16Vector(int)’
- 174 | status_t writeUtf8VectorAsUtf16Vector(
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:172:25: note: previous declaration ‘android::status_t android::Parcel::writeUtf8VectorAsUtf16Vector(int)’
- 172 | status_t writeUtf8VectorAsUtf16Vector(
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:178:60: error: ‘optional’ in namespace ‘std’ does not name a template type
- 178 | status_t writeStrongBinderVector(const std::optional<std::vector<sp<IBinder>>>& val);
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:178:55: note: ‘std::optional’ is only available from C++17 onwards
- 178 | status_t writeStrongBinderVector(const std::optional<std::vector<sp<IBinder>>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:178:68: error: expected ‘,’ or ‘...’ before ‘<’ token
- 178 | status_t writeStrongBinderVector(const std::optional<std::vector<sp<IBinder>>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:179:60: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 179 | status_t writeStrongBinderVector(const std::unique_ptr<std::vector<sp<IBinder>>>& val);
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:179:55: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 179 | status_t writeStrongBinderVector(const std::unique_ptr<std::vector<sp<IBinder>>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:179:70: error: expected ‘,’ or ‘...’ before ‘<’ token
- 179 | status_t writeStrongBinderVector(const std::unique_ptr<std::vector<sp<IBinder>>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:179:25: error: ‘android::status_t android::Parcel::writeStrongBinderVector(int)’ cannot be overloaded with ‘android::status_t android::Parcel::writeStrongBinderVector(int)’
- 179 | status_t writeStrongBinderVector(const std::unique_ptr<std::vector<sp<IBinder>>>& val);
- | ^~~~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:178:25: note: previous declaration ‘android::status_t android::Parcel::writeStrongBinderVector(int)’
- 178 | status_t writeStrongBinderVector(const std::optional<std::vector<sp<IBinder>>>& val);
- | ^~~~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:184:48: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 184 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:184:48: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 184 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:184:59: error: template argument 1 is invalid
- 184 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:184:64: error: expected ‘>’
- 184 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:184:129: error: expected unqualified-id before ‘=’ token
- 184 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:186:48: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 186 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:186:48: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 186 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:186:59: error: template argument 1 is invalid
- 186 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:186:64: error: expected ‘>’
- 186 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:186:129: error: expected unqualified-id before ‘=’ token
- 186 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:188:48: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 188 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:188:48: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 188 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:188:59: error: template argument 1 is invalid
- 188 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:188:64: error: expected ‘>’
- 188 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:188:129: error: expected unqualified-id before ‘=’ token
- 188 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:191:48: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 191 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:191:48: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 191 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:191:59: error: template argument 1 is invalid
- 191 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:191:64: error: expected ‘>’ before ‘!’ token
- 191 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:191:130: error: expected unqualified-id before ‘=’ token
- 191 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:193:48: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 193 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:193:48: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 193 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:193:59: error: template argument 1 is invalid
- 193 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:193:64: error: expected ‘>’ before ‘!’ token
- 193 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:193:130: error: expected unqualified-id before ‘=’ token
- 193 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:195:48: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 195 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:195:48: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 195 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:195:59: error: template argument 1 is invalid
- 195 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:195:64: error: expected ‘>’ before ‘!’ token
- 195 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:195:130: error: expected unqualified-id before ‘=’ token
- 195 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:199:58: error: ‘optional’ in namespace ‘std’ does not name a template type
- 199 | status_t writeParcelableVector(const std::optional<std::vector<std::optional<T>>>& val);
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:199:53: note: ‘std::optional’ is only available from C++17 onwards
- 199 | status_t writeParcelableVector(const std::optional<std::vector<std::optional<T>>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:199:66: error: expected ‘,’ or ‘...’ before ‘<’ token
- 199 | status_t writeParcelableVector(const std::optional<std::vector<std::optional<T>>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:201:58: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 201 | status_t writeParcelableVector(const std::unique_ptr<std::vector<std::unique_ptr<T>>>& val);
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:201:53: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 201 | status_t writeParcelableVector(const std::unique_ptr<std::vector<std::unique_ptr<T>>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:201:68: error: expected ‘,’ or ‘...’ before ‘<’ token
- 201 | status_t writeParcelableVector(const std::unique_ptr<std::vector<std::unique_ptr<T>>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:201:25: error: ‘template<class T> android::status_t android::Parcel::writeParcelableVector(int)’ cannot be overloaded with ‘template<class T> android::status_t android::Parcel::writeParcelableVector(int)’
- 201 | status_t writeParcelableVector(const std::unique_ptr<std::vector<std::unique_ptr<T>>>& val);
- | ^~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:199:25: note: previous declaration ‘template<class T> android::status_t android::Parcel::writeParcelableVector(int)’
- 199 | status_t writeParcelableVector(const std::optional<std::vector<std::optional<T>>>& val);
- | ^~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:203:58: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
- 203 | status_t writeParcelableVector(const std::shared_ptr<std::vector<std::unique_ptr<T>>>& val);
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:203:53: note: ‘std::shared_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 203 | status_t writeParcelableVector(const std::shared_ptr<std::vector<std::unique_ptr<T>>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:203:68: error: expected ‘,’ or ‘...’ before ‘<’ token
- 203 | status_t writeParcelableVector(const std::shared_ptr<std::vector<std::unique_ptr<T>>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:203:25: error: ‘template<class T> android::status_t android::Parcel::writeParcelableVector(int)’ cannot be overloaded with ‘template<class T> android::status_t android::Parcel::writeParcelableVector(int)’
- 203 | status_t writeParcelableVector(const std::shared_ptr<std::vector<std::unique_ptr<T>>>& val);
- | ^~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:199:25: note: previous declaration ‘template<class T> android::status_t android::Parcel::writeParcelableVector(int)’
- 199 | status_t writeParcelableVector(const std::optional<std::vector<std::optional<T>>>& val);
- | ^~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:208:60: error: ‘optional’ in namespace ‘std’ does not name a template type
- 208 | status_t writeNullableParcelable(const std::optional<T>& parcelable);
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:208:55: note: ‘std::optional’ is only available from C++17 onwards
- 208 | status_t writeNullableParcelable(const std::optional<T>& parcelable);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:208:68: error: expected ‘,’ or ‘...’ before ‘<’ token
- 208 | status_t writeNullableParcelable(const std::optional<T>& parcelable);
- | ^
- ./frameworks/native/include/binder/Parcel.h:210:60: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 210 | status_t writeNullableParcelable(const std::unique_ptr<T>& parcelable);
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:210:55: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 210 | status_t writeNullableParcelable(const std::unique_ptr<T>& parcelable);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:210:70: error: expected ‘,’ or ‘...’ before ‘<’ token
- 210 | status_t writeNullableParcelable(const std::unique_ptr<T>& parcelable);
- | ^
- ./frameworks/native/include/binder/Parcel.h:210:25: error: ‘template<class T> android::status_t android::Parcel::writeNullableParcelable(int)’ cannot be overloaded with ‘template<class T> android::status_t android::Parcel::writeNullableParcelable(int)’
- 210 | status_t writeNullableParcelable(const std::unique_ptr<T>& parcelable);
- | ^~~~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:208:25: note: previous declaration ‘template<class T> android::status_t android::Parcel::writeNullableParcelable(int)’
- 208 | status_t writeNullableParcelable(const std::optional<T>& parcelable);
- | ^~~~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:223:52: error: ‘optional’ in namespace ‘std’ does not name a template type
- 223 | status_t writeVectorSize(const std::optional<std::vector<T>>& val);
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:223:47: note: ‘std::optional’ is only available from C++17 onwards
- 223 | status_t writeVectorSize(const std::optional<std::vector<T>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:223:60: error: expected ‘,’ or ‘...’ before ‘<’ token
- 223 | status_t writeVectorSize(const std::optional<std::vector<T>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:225:52: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 225 | status_t writeVectorSize(const std::unique_ptr<std::vector<T>>& val);
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:225:47: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 225 | status_t writeVectorSize(const std::unique_ptr<std::vector<T>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:225:62: error: expected ‘,’ or ‘...’ before ‘<’ token
- 225 | status_t writeVectorSize(const std::unique_ptr<std::vector<T>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:225:25: error: ‘template<class T> android::status_t android::Parcel::writeVectorSize(int)’ cannot be overloaded with ‘template<class T> android::status_t android::Parcel::writeVectorSize(int)’
- 225 | status_t writeVectorSize(const std::unique_ptr<std::vector<T>>& val);
- | ^~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:223:25: note: previous declaration ‘template<class T> android::status_t android::Parcel::writeVectorSize(int)’
- 223 | status_t writeVectorSize(const std::optional<std::vector<T>>& val);
- | ^~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:260:40: error: ‘optional’ in namespace ‘std’ does not name a template type
- 260 | const std::optional<std::vector<base::unique_fd>>& val);
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:260:35: note: ‘std::optional’ is only available from C++17 onwards
- 260 | const std::optional<std::vector<base::unique_fd>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:260:48: error: expected ‘,’ or ‘...’ before ‘<’ token
- 260 | const std::optional<std::vector<base::unique_fd>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:262:40: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 262 | const std::unique_ptr<std::vector<base::unique_fd>>& val);
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:262:35: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 262 | const std::unique_ptr<std::vector<base::unique_fd>>& val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:262:50: error: expected ‘,’ or ‘...’ before ‘<’ token
- 262 | const std::unique_ptr<std::vector<base::unique_fd>>& val);
- | ^
- ./frameworks/native/include/binder/Parcel.h:261:25: error: ‘android::status_t android::Parcel::writeUniqueFileDescriptorVector(int)’ cannot be overloaded with ‘android::status_t android::Parcel::writeUniqueFileDescriptorVector(int)’
- 261 | status_t writeUniqueFileDescriptorVector(
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:259:25: note: previous declaration ‘android::status_t android::Parcel::writeUniqueFileDescriptorVector(int)’
- 259 | status_t writeUniqueFileDescriptorVector(
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:311:48: error: ‘std::optional’ has not been declared
- 311 | status_t readUtf8FromUtf16(std::optional<std::string>* str) const;
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:311:56: error: expected ‘,’ or ‘...’ before ‘<’ token
- 311 | status_t readUtf8FromUtf16(std::optional<std::string>* str) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:312:48: error: ‘std::unique_ptr’ has not been declared
- 312 | status_t readUtf8FromUtf16(std::unique_ptr<std::string>* str) const;
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:312:58: error: expected ‘,’ or ‘...’ before ‘<’ token
- 312 | status_t readUtf8FromUtf16(std::unique_ptr<std::string>* str) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:312:25: error: ‘android::status_t android::Parcel::readUtf8FromUtf16(int) const’ cannot be overloaded with ‘android::status_t android::Parcel::readUtf8FromUtf16(int) const’
- 312 | status_t readUtf8FromUtf16(std::unique_ptr<std::string>* str) const;
- | ^~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:311:25: note: previous declaration ‘android::status_t android::Parcel::readUtf8FromUtf16(int) const’
- 311 | status_t readUtf8FromUtf16(std::optional<std::string>* str) const;
- | ^~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:320:43: error: ‘std::optional’ has not been declared
- 320 | status_t readString16(std::optional<String16>* pArg) const;
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:320:51: error: expected ‘,’ or ‘...’ before ‘<’ token
- 320 | status_t readString16(std::optional<String16>* pArg) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:321:43: error: ‘std::unique_ptr’ has not been declared
- 321 | status_t readString16(std::unique_ptr<String16>* pArg) const;
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:321:53: error: expected ‘,’ or ‘...’ before ‘<’ token
- 321 | status_t readString16(std::unique_ptr<String16>* pArg) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:321:25: error: ‘android::status_t android::Parcel::readString16(int) const’ cannot be overloaded with ‘android::status_t android::Parcel::readString16(int) const’
- 321 | status_t readString16(std::unique_ptr<String16>* pArg) const;
- | ^~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:320:25: note: previous declaration ‘android::status_t android::Parcel::readString16(int) const’
- 320 | status_t readString16(std::optional<String16>* pArg) const;
- | ^~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:329:48: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 329 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:329:48: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 329 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:329:59: error: template argument 1 is invalid
- 329 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:329:64: error: expected ‘>’
- 329 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:329:129: error: expected unqualified-id before ‘=’ token
- 329 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:331:48: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 331 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:331:48: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 331 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:331:59: error: template argument 1 is invalid
- 331 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:331:64: error: expected ‘>’
- 331 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:331:129: error: expected unqualified-id before ‘=’ token
- 331 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:333:48: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 333 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:333:48: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 333 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:333:59: error: template argument 1 is invalid
- 333 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:333:64: error: expected ‘>’
- 333 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:333:129: error: expected unqualified-id before ‘=’ token
- 333 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:336:48: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 336 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:336:48: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 336 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:336:59: error: template argument 1 is invalid
- 336 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:336:64: error: expected ‘>’ before ‘!’ token
- 336 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:336:130: error: expected unqualified-id before ‘=’ token
- 336 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:338:48: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 338 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:338:48: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 338 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:338:59: error: template argument 1 is invalid
- 338 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:338:64: error: expected ‘>’ before ‘!’ token
- 338 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:338:130: error: expected unqualified-id before ‘=’ token
- 338 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:340:48: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 340 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:340:48: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 340 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:340:59: error: template argument 1 is invalid
- 340 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:340:64: error: expected ‘>’ before ‘!’ token
- 340 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:340:130: error: expected unqualified-id before ‘=’ token
- 340 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:345:34: error: ‘std::optional’ has not been declared
- 345 | std::optional<std::vector<std::optional<T>>>* val) const;
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:345:42: error: expected ‘,’ or ‘...’ before ‘<’ token
- 345 | std::optional<std::vector<std::optional<T>>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:348:34: error: ‘std::unique_ptr’ has not been declared
- 348 | std::unique_ptr<std::vector<std::unique_ptr<T>>>* val) const;
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:348:44: error: expected ‘,’ or ‘...’ before ‘<’ token
- 348 | std::unique_ptr<std::vector<std::unique_ptr<T>>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:347:25: error: ‘template<class T> android::status_t android::Parcel::readParcelableVector(int) const’ cannot be overloaded with ‘template<class T> android::status_t android::Parcel::readParcelableVector(int) const’
- 347 | status_t readParcelableVector(
- | ^~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:344:25: note: previous declaration ‘template<class T> android::status_t android::Parcel::readParcelableVector(int) const’
- 344 | status_t readParcelableVector(
- | ^~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:355:45: error: ‘std::optional’ has not been declared
- 355 | status_t readParcelable(std::optional<T>* parcelable) const;
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:355:53: error: expected ‘,’ or ‘...’ before ‘<’ token
- 355 | status_t readParcelable(std::optional<T>* parcelable) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:357:45: error: ‘std::unique_ptr’ has not been declared
- 357 | status_t readParcelable(std::unique_ptr<T>* parcelable) const;
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:357:55: error: expected ‘,’ or ‘...’ before ‘<’ token
- 357 | status_t readParcelable(std::unique_ptr<T>* parcelable) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:357:25: error: ‘template<class T> android::status_t android::Parcel::readParcelable(int) const’ cannot be overloaded with ‘template<class T> android::status_t android::Parcel::readParcelable(int) const’
- 357 | status_t readParcelable(std::unique_ptr<T>* parcelable) const;
- | ^~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:355:25: note: previous declaration ‘template<class T> android::status_t android::Parcel::readParcelable(int) const’
- 355 | status_t readParcelable(std::optional<T>* parcelable) const;
- | ^~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:365:53: error: ‘std::optional’ has not been declared
- 365 | status_t readStrongBinderVector(std::optional<std::vector<sp<IBinder>>>* val) const;
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:365:61: error: expected ‘,’ or ‘...’ before ‘<’ token
- 365 | status_t readStrongBinderVector(std::optional<std::vector<sp<IBinder>>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:366:53: error: ‘std::unique_ptr’ has not been declared
- 366 | status_t readStrongBinderVector(std::unique_ptr<std::vector<sp<IBinder>>>* val) const;
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:366:63: error: expected ‘,’ or ‘...’ before ‘<’ token
- 366 | status_t readStrongBinderVector(std::unique_ptr<std::vector<sp<IBinder>>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:366:25: error: ‘android::status_t android::Parcel::readStrongBinderVector(int) const’ cannot be overloaded with ‘android::status_t android::Parcel::readStrongBinderVector(int) const’
- 366 | status_t readStrongBinderVector(std::unique_ptr<std::vector<sp<IBinder>>>* val) const;
- | ^~~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:365:25: note: previous declaration ‘android::status_t android::Parcel::readStrongBinderVector(int) const’
- 365 | status_t readStrongBinderVector(std::optional<std::vector<sp<IBinder>>>* val) const;
- | ^~~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:369:45: error: ‘std::optional’ has not been declared
- 369 | status_t readByteVector(std::optional<std::vector<int8_t>>* val) const;
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:369:53: error: expected ‘,’ or ‘...’ before ‘<’ token
- 369 | status_t readByteVector(std::optional<std::vector<int8_t>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:370:45: error: ‘std::unique_ptr’ has not been declared
- 370 | status_t readByteVector(std::unique_ptr<std::vector<int8_t>>* val) const;
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:370:55: error: expected ‘,’ or ‘...’ before ‘<’ token
- 370 | status_t readByteVector(std::unique_ptr<std::vector<int8_t>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:370:25: error: ‘android::status_t android::Parcel::readByteVector(int) const’ cannot be overloaded with ‘android::status_t android::Parcel::readByteVector(int) const’
- 370 | status_t readByteVector(std::unique_ptr<std::vector<int8_t>>* val) const;
- | ^~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:369:25: note: previous declaration ‘android::status_t android::Parcel::readByteVector(int) const’
- 369 | status_t readByteVector(std::optional<std::vector<int8_t>>* val) const;
- | ^~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:372:45: error: ‘std::optional’ has not been declared
- 372 | status_t readByteVector(std::optional<std::vector<uint8_t>>* val) const;
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:372:53: error: expected ‘,’ or ‘...’ before ‘<’ token
- 372 | status_t readByteVector(std::optional<std::vector<uint8_t>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:372:25: error: ‘android::status_t android::Parcel::readByteVector(int) const’ cannot be overloaded with ‘android::status_t android::Parcel::readByteVector(int) const’
- 372 | status_t readByteVector(std::optional<std::vector<uint8_t>>* val) const;
- | ^~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:369:25: note: previous declaration ‘android::status_t android::Parcel::readByteVector(int) const’
- 369 | status_t readByteVector(std::optional<std::vector<int8_t>>* val) const;
- | ^~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:373:45: error: ‘std::unique_ptr’ has not been declared
- 373 | status_t readByteVector(std::unique_ptr<std::vector<uint8_t>>* val) const;
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:373:55: error: expected ‘,’ or ‘...’ before ‘<’ token
- 373 | status_t readByteVector(std::unique_ptr<std::vector<uint8_t>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:373:25: error: ‘android::status_t android::Parcel::readByteVector(int) const’ cannot be overloaded with ‘android::status_t android::Parcel::readByteVector(int) const’
- 373 | status_t readByteVector(std::unique_ptr<std::vector<uint8_t>>* val) const;
- | ^~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:369:25: note: previous declaration ‘android::status_t android::Parcel::readByteVector(int) const’
- 369 | status_t readByteVector(std::optional<std::vector<int8_t>>* val) const;
- | ^~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:375:46: error: ‘std::optional’ has not been declared
- 375 | status_t readInt32Vector(std::optional<std::vector<int32_t>>* val) const;
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:375:54: error: expected ‘,’ or ‘...’ before ‘<’ token
- 375 | status_t readInt32Vector(std::optional<std::vector<int32_t>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:376:46: error: ‘std::unique_ptr’ has not been declared
- 376 | status_t readInt32Vector(std::unique_ptr<std::vector<int32_t>>* val) const;
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:376:56: error: expected ‘,’ or ‘...’ before ‘<’ token
- 376 | status_t readInt32Vector(std::unique_ptr<std::vector<int32_t>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:376:25: error: ‘android::status_t android::Parcel::readInt32Vector(int) const’ cannot be overloaded with ‘android::status_t android::Parcel::readInt32Vector(int) const’
- 376 | status_t readInt32Vector(std::unique_ptr<std::vector<int32_t>>* val) const;
- | ^~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:375:25: note: previous declaration ‘android::status_t android::Parcel::readInt32Vector(int) const’
- 375 | status_t readInt32Vector(std::optional<std::vector<int32_t>>* val) const;
- | ^~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:378:46: error: ‘std::optional’ has not been declared
- 378 | status_t readInt64Vector(std::optional<std::vector<int64_t>>* val) const;
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:378:54: error: expected ‘,’ or ‘...’ before ‘<’ token
- 378 | status_t readInt64Vector(std::optional<std::vector<int64_t>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:379:46: error: ‘std::unique_ptr’ has not been declared
- 379 | status_t readInt64Vector(std::unique_ptr<std::vector<int64_t>>* val) const;
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:379:56: error: expected ‘,’ or ‘...’ before ‘<’ token
- 379 | status_t readInt64Vector(std::unique_ptr<std::vector<int64_t>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:379:25: error: ‘android::status_t android::Parcel::readInt64Vector(int) const’ cannot be overloaded with ‘android::status_t android::Parcel::readInt64Vector(int) const’
- 379 | status_t readInt64Vector(std::unique_ptr<std::vector<int64_t>>* val) const;
- | ^~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:378:25: note: previous declaration ‘android::status_t android::Parcel::readInt64Vector(int) const’
- 378 | status_t readInt64Vector(std::optional<std::vector<int64_t>>* val) const;
- | ^~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:381:47: error: ‘std::optional’ has not been declared
- 381 | status_t readUint64Vector(std::optional<std::vector<uint64_t>>* val) const;
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:381:55: error: expected ‘,’ or ‘...’ before ‘<’ token
- 381 | status_t readUint64Vector(std::optional<std::vector<uint64_t>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:382:47: error: ‘std::unique_ptr’ has not been declared
- 382 | status_t readUint64Vector(std::unique_ptr<std::vector<uint64_t>>* val) const;
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:382:57: error: expected ‘,’ or ‘...’ before ‘<’ token
- 382 | status_t readUint64Vector(std::unique_ptr<std::vector<uint64_t>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:382:25: error: ‘android::status_t android::Parcel::readUint64Vector(int) const’ cannot be overloaded with ‘android::status_t android::Parcel::readUint64Vector(int) const’
- 382 | status_t readUint64Vector(std::unique_ptr<std::vector<uint64_t>>* val) const;
- | ^~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:381:25: note: previous declaration ‘android::status_t android::Parcel::readUint64Vector(int) const’
- 381 | status_t readUint64Vector(std::optional<std::vector<uint64_t>>* val) const;
- | ^~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:384:46: error: ‘std::optional’ has not been declared
- 384 | status_t readFloatVector(std::optional<std::vector<float>>* val) const;
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:384:54: error: expected ‘,’ or ‘...’ before ‘<’ token
- 384 | status_t readFloatVector(std::optional<std::vector<float>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:385:46: error: ‘std::unique_ptr’ has not been declared
- 385 | status_t readFloatVector(std::unique_ptr<std::vector<float>>* val) const;
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:385:56: error: expected ‘,’ or ‘...’ before ‘<’ token
- 385 | status_t readFloatVector(std::unique_ptr<std::vector<float>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:385:25: error: ‘android::status_t android::Parcel::readFloatVector(int) const’ cannot be overloaded with ‘android::status_t android::Parcel::readFloatVector(int) const’
- 385 | status_t readFloatVector(std::unique_ptr<std::vector<float>>* val) const;
- | ^~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:384:25: note: previous declaration ‘android::status_t android::Parcel::readFloatVector(int) const’
- 384 | status_t readFloatVector(std::optional<std::vector<float>>* val) const;
- | ^~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:387:47: error: ‘std::optional’ has not been declared
- 387 | status_t readDoubleVector(std::optional<std::vector<double>>* val) const;
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:387:55: error: expected ‘,’ or ‘...’ before ‘<’ token
- 387 | status_t readDoubleVector(std::optional<std::vector<double>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:388:47: error: ‘std::unique_ptr’ has not been declared
- 388 | status_t readDoubleVector(std::unique_ptr<std::vector<double>>* val) const;
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:388:57: error: expected ‘,’ or ‘...’ before ‘<’ token
- 388 | status_t readDoubleVector(std::unique_ptr<std::vector<double>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:388:25: error: ‘android::status_t android::Parcel::readDoubleVector(int) const’ cannot be overloaded with ‘android::status_t android::Parcel::readDoubleVector(int) const’
- 388 | status_t readDoubleVector(std::unique_ptr<std::vector<double>>* val) const;
- | ^~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:387:25: note: previous declaration ‘android::status_t android::Parcel::readDoubleVector(int) const’
- 387 | status_t readDoubleVector(std::optional<std::vector<double>>* val) const;
- | ^~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:390:45: error: ‘std::optional’ has not been declared
- 390 | status_t readBoolVector(std::optional<std::vector<bool>>* val) const;
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:390:53: error: expected ‘,’ or ‘...’ before ‘<’ token
- 390 | status_t readBoolVector(std::optional<std::vector<bool>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:391:45: error: ‘std::unique_ptr’ has not been declared
- 391 | status_t readBoolVector(std::unique_ptr<std::vector<bool>>* val) const;
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:391:55: error: expected ‘,’ or ‘...’ before ‘<’ token
- 391 | status_t readBoolVector(std::unique_ptr<std::vector<bool>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:391:25: error: ‘android::status_t android::Parcel::readBoolVector(int) const’ cannot be overloaded with ‘android::status_t android::Parcel::readBoolVector(int) const’
- 391 | status_t readBoolVector(std::unique_ptr<std::vector<bool>>* val) const;
- | ^~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:390:25: note: previous declaration ‘android::status_t android::Parcel::readBoolVector(int) const’
- 390 | status_t readBoolVector(std::optional<std::vector<bool>>* val) const;
- | ^~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:393:45: error: ‘std::optional’ has not been declared
- 393 | status_t readCharVector(std::optional<std::vector<char16_t>>* val) const;
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:393:53: error: expected ‘,’ or ‘...’ before ‘<’ token
- 393 | status_t readCharVector(std::optional<std::vector<char16_t>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:394:45: error: ‘std::unique_ptr’ has not been declared
- 394 | status_t readCharVector(std::unique_ptr<std::vector<char16_t>>* val) const;
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:394:55: error: expected ‘,’ or ‘...’ before ‘<’ token
- 394 | status_t readCharVector(std::unique_ptr<std::vector<char16_t>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:394:25: error: ‘android::status_t android::Parcel::readCharVector(int) const’ cannot be overloaded with ‘android::status_t android::Parcel::readCharVector(int) const’
- 394 | status_t readCharVector(std::unique_ptr<std::vector<char16_t>>* val) const;
- | ^~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:393:25: note: previous declaration ‘android::status_t android::Parcel::readCharVector(int) const’
- 393 | status_t readCharVector(std::optional<std::vector<char16_t>>* val) const;
- | ^~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:397:34: error: ‘std::optional’ has not been declared
- 397 | std::optional<std::vector<std::optional<String16>>>* val) const;
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:397:42: error: expected ‘,’ or ‘...’ before ‘<’ token
- 397 | std::optional<std::vector<std::optional<String16>>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:399:34: error: ‘std::unique_ptr’ has not been declared
- 399 | std::unique_ptr<std::vector<std::unique_ptr<String16>>>* val) const;
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:399:44: error: expected ‘,’ or ‘...’ before ‘<’ token
- 399 | std::unique_ptr<std::vector<std::unique_ptr<String16>>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:398:25: error: ‘android::status_t android::Parcel::readString16Vector(int) const’ cannot be overloaded with ‘android::status_t android::Parcel::readString16Vector(int) const’
- 398 | status_t readString16Vector(
- | ^~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:396:25: note: previous declaration ‘android::status_t android::Parcel::readString16Vector(int) const’
- 396 | status_t readString16Vector(
- | ^~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:402:34: error: ‘std::optional’ has not been declared
- 402 | std::optional<std::vector<std::optional<std::string>>>* val) const;
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:402:42: error: expected ‘,’ or ‘...’ before ‘<’ token
- 402 | std::optional<std::vector<std::optional<std::string>>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:404:34: error: ‘std::unique_ptr’ has not been declared
- 404 | std::unique_ptr<std::vector<std::unique_ptr<std::string>>>* val) const;
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:404:44: error: expected ‘,’ or ‘...’ before ‘<’ token
- 404 | std::unique_ptr<std::vector<std::unique_ptr<std::string>>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:403:25: error: ‘android::status_t android::Parcel::readUtf8VectorFromUtf16Vector(int) const’ cannot be overloaded with ‘android::status_t android::Parcel::readUtf8VectorFromUtf16Vector(int) const’
- 403 | status_t readUtf8VectorFromUtf16Vector(
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:401:25: note: previous declaration ‘android::status_t android::Parcel::readUtf8VectorFromUtf16Vector(int) const’
- 401 | status_t readUtf8VectorFromUtf16Vector(
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:416:46: error: ‘std::optional’ has not been declared
- 416 | status_t resizeOutVector(std::optional<std::vector<T>>* val) const;
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:416:54: error: expected ‘,’ or ‘...’ before ‘<’ token
- 416 | status_t resizeOutVector(std::optional<std::vector<T>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:418:46: error: ‘std::unique_ptr’ has not been declared
- 418 | status_t resizeOutVector(std::unique_ptr<std::vector<T>>* val) const;
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:418:56: error: expected ‘,’ or ‘...’ before ‘<’ token
- 418 | status_t resizeOutVector(std::unique_ptr<std::vector<T>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:418:25: error: ‘template<class T> android::status_t android::Parcel::resizeOutVector(int) const’ cannot be overloaded with ‘template<class T> android::status_t android::Parcel::resizeOutVector(int) const’
- 418 | status_t resizeOutVector(std::unique_ptr<std::vector<T>>* val) const;
- | ^~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:416:25: note: previous declaration ‘template<class T> android::status_t android::Parcel::resizeOutVector(int) const’
- 416 | status_t resizeOutVector(std::optional<std::vector<T>>* val) const;
- | ^~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:422:47: error: ‘std::optional’ has not been declared
- 422 | status_t reserveOutVector(std::optional<std::vector<T>>* val,
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:422:55: error: expected ‘,’ or ‘...’ before ‘<’ token
- 422 | status_t reserveOutVector(std::optional<std::vector<T>>* val,
- | ^
- ./frameworks/native/include/binder/Parcel.h:425:47: error: ‘std::unique_ptr’ has not been declared
- 425 | status_t reserveOutVector(std::unique_ptr<std::vector<T>>* val,
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:425:57: error: expected ‘,’ or ‘...’ before ‘<’ token
- 425 | status_t reserveOutVector(std::unique_ptr<std::vector<T>>* val,
- | ^
- ./frameworks/native/include/binder/Parcel.h:425:25: error: ‘template<class T> android::status_t android::Parcel::reserveOutVector(int) const’ cannot be overloaded with ‘template<class T> android::status_t android::Parcel::reserveOutVector(int) const’
- 425 | status_t reserveOutVector(std::unique_ptr<std::vector<T>>* val,
- | ^~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:422:25: note: previous declaration ‘template<class T> android::status_t android::Parcel::reserveOutVector(int) const’
- 422 | status_t reserveOutVector(std::optional<std::vector<T>>* val,
- | ^~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:460:34: error: ‘std::optional’ has not been declared
- 460 | std::optional<std::vector<base::unique_fd>>* val) const;
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:460:42: error: expected ‘,’ or ‘...’ before ‘<’ token
- 460 | std::optional<std::vector<base::unique_fd>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:462:34: error: ‘std::unique_ptr’ has not been declared
- 462 | std::unique_ptr<std::vector<base::unique_fd>>* val) const;
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:462:44: error: expected ‘,’ or ‘...’ before ‘<’ token
- 462 | std::unique_ptr<std::vector<base::unique_fd>>* val) const;
- | ^
- ./frameworks/native/include/binder/Parcel.h:461:25: error: ‘android::status_t android::Parcel::readUniqueFileDescriptorVector(int) const’ cannot be overloaded with ‘android::status_t android::Parcel::readUniqueFileDescriptorVector(int) const’
- 461 | status_t readUniqueFileDescriptorVector(
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:459:25: note: previous declaration ‘android::status_t android::Parcel::readUniqueFileDescriptorVector(int) const’
- 459 | status_t readUniqueFileDescriptorVector(
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:537:48: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’?
- 537 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int32_t>, bool> = 0>
- | ^~~~~~~~~
- | is_same
- ./frameworks/native/include/binder/Parcel.h:537:48: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’?
- 537 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int32_t>, bool> = 0>
- | ^~~~~~~~~
- | is_same
- ./frameworks/native/include/binder/Parcel.h:537:100: error: template argument 1 is invalid
- 537 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int32_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:537:109: error: expected unqualified-id before ‘=’ token
- 537 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int32_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:539:48: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’?
- 539 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int64_t>, bool> = 0>
- | ^~~~~~~~~
- | is_same
- ./frameworks/native/include/binder/Parcel.h:539:48: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’?
- 539 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int64_t>, bool> = 0>
- | ^~~~~~~~~
- | is_same
- ./frameworks/native/include/binder/Parcel.h:539:100: error: template argument 1 is invalid
- 539 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int64_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:539:109: error: expected unqualified-id before ‘=’ token
- 539 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int64_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:542:48: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’?
- 542 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int32_t>, bool> = 0>
- | ^~~~~~~~~
- | is_same
- ./frameworks/native/include/binder/Parcel.h:542:48: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’?
- 542 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int32_t>, bool> = 0>
- | ^~~~~~~~~
- | is_same
- ./frameworks/native/include/binder/Parcel.h:542:100: error: template argument 1 is invalid
- 542 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int32_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:542:109: error: expected unqualified-id before ‘=’ token
- 542 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int32_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:544:48: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’?
- 544 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int64_t>, bool> = 0>
- | ^~~~~~~~~
- | is_same
- ./frameworks/native/include/binder/Parcel.h:544:48: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’?
- 544 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int64_t>, bool> = 0>
- | ^~~~~~~~~
- | is_same
- ./frameworks/native/include/binder/Parcel.h:544:100: error: template argument 1 is invalid
- 544 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int64_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:544:109: error: expected unqualified-id before ‘=’ token
- 544 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int64_t>, bool> = 0>
- | ^
- ./frameworks/native/include/binder/Parcel.h:555:54: error: ‘std::optional’ has not been declared
- 555 | status_t readNullableTypedVector(std::optional<std::vector<T>>* val,
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:555:62: error: expected ‘,’ or ‘...’ before ‘<’ token
- 555 | status_t readNullableTypedVector(std::optional<std::vector<T>>* val,
- | ^
- ./frameworks/native/include/binder/Parcel.h:558:54: error: ‘std::unique_ptr’ has not been declared
- 558 | status_t readNullableTypedVector(std::unique_ptr<std::vector<T>>* val,
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:558:64: error: expected ‘,’ or ‘...’ before ‘<’ token
- 558 | status_t readNullableTypedVector(std::unique_ptr<std::vector<T>>* val,
- | ^
- ./frameworks/native/include/binder/Parcel.h:558:25: error: ‘template<class T> android::status_t android::Parcel::readNullableTypedVector(int) const’ cannot be overloaded with ‘template<class T> android::status_t android::Parcel::readNullableTypedVector(int) const’
- 558 | status_t readNullableTypedVector(std::unique_ptr<std::vector<T>>* val,
- | ^~~~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:555:25: note: previous declaration ‘template<class T> android::status_t android::Parcel::readNullableTypedVector(int) const’
- 555 | status_t readNullableTypedVector(std::optional<std::vector<T>>* val,
- | ^~~~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:567:61: error: ‘optional’ in namespace ‘std’ does not name a template type
- 567 | status_t writeNullableTypedVector(const std::optional<std::vector<T>>& val,
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:567:56: note: ‘std::optional’ is only available from C++17 onwards
- 567 | status_t writeNullableTypedVector(const std::optional<std::vector<T>>& val,
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:567:69: error: expected ‘,’ or ‘...’ before ‘<’ token
- 567 | status_t writeNullableTypedVector(const std::optional<std::vector<T>>& val,
- | ^
- ./frameworks/native/include/binder/Parcel.h:570:61: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 570 | status_t writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val,
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:570:56: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 570 | status_t writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val,
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:570:71: error: expected ‘,’ or ‘...’ before ‘<’ token
- 570 | status_t writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val,
- | ^
- ./frameworks/native/include/binder/Parcel.h:570:25: error: ‘template<class T> android::status_t android::Parcel::writeNullableTypedVector(int)’ cannot be overloaded with ‘template<class T> android::status_t android::Parcel::writeNullableTypedVector(int)’
- 570 | status_t writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val,
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:567:25: note: previous declaration ‘template<class T> android::status_t android::Parcel::writeNullableTypedVector(int)’
- 567 | status_t writeNullableTypedVector(const std::optional<std::vector<T>>& val,
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:573:61: error: ‘optional’ in namespace ‘std’ does not name a template type
- 573 | status_t writeNullableTypedVector(const std::optional<std::vector<T>>& val,
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:573:56: note: ‘std::optional’ is only available from C++17 onwards
- 573 | status_t writeNullableTypedVector(const std::optional<std::vector<T>>& val,
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:573:69: error: expected ‘,’ or ‘...’ before ‘<’ token
- 573 | status_t writeNullableTypedVector(const std::optional<std::vector<T>>& val,
- | ^
- ./frameworks/native/include/binder/Parcel.h:573:25: error: ‘template<class T> android::status_t android::Parcel::writeNullableTypedVector(int)’ cannot be overloaded with ‘template<class T> android::status_t android::Parcel::writeNullableTypedVector(int)’
- 573 | status_t writeNullableTypedVector(const std::optional<std::vector<T>>& val,
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:567:25: note: previous declaration ‘template<class T> android::status_t android::Parcel::writeNullableTypedVector(int)’
- 567 | status_t writeNullableTypedVector(const std::optional<std::vector<T>>& val,
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:576:61: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 576 | status_t writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val,
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:576:56: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 576 | status_t writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val,
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:576:71: error: expected ‘,’ or ‘...’ before ‘<’ token
- 576 | status_t writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val,
- | ^
- ./frameworks/native/include/binder/Parcel.h:576:25: error: ‘template<class T> android::status_t android::Parcel::writeNullableTypedVector(int)’ cannot be overloaded with ‘template<class T> android::status_t android::Parcel::writeNullableTypedVector(int)’
- 576 | status_t writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val,
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:567:25: note: previous declaration ‘template<class T> android::status_t android::Parcel::writeNullableTypedVector(int)’
- 567 | status_t writeNullableTypedVector(const std::optional<std::vector<T>>& val,
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:763:45: error: ‘optional’ in namespace ‘std’ does not name a template type
- 763 | status_t Parcel::writeVectorSize(const std::optional<std::vector<T>>& val) {
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:763:40: note: ‘std::optional’ is only available from C++17 onwards
- 763 | status_t Parcel::writeVectorSize(const std::optional<std::vector<T>>& val) {
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:763:53: error: expected ‘,’ or ‘...’ before ‘<’ token
- 763 | status_t Parcel::writeVectorSize(const std::optional<std::vector<T>>& val) {
- | ^
- ./frameworks/native/include/binder/Parcel.h: In member function ‘android::status_t android::Parcel::writeVectorSize(int)’:
- ./frameworks/native/include/binder/Parcel.h:764:10: error: ‘val’ was not declared in this scope
- 764 | if (!val) {
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:768:29: error: ‘val’ was not declared in this scope
- 768 | return writeVectorSize(*val);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h: At global scope:
- ./frameworks/native/include/binder/Parcel.h:772:45: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 772 | status_t Parcel::writeVectorSize(const std::unique_ptr<std::vector<T>>& val) {
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:772:40: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 772 | status_t Parcel::writeVectorSize(const std::unique_ptr<std::vector<T>>& val) {
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:772:55: error: expected ‘,’ or ‘...’ before ‘<’ token
- 772 | status_t Parcel::writeVectorSize(const std::unique_ptr<std::vector<T>>& val) {
- | ^
- ./frameworks/native/include/binder/Parcel.h:772:10: error: redefinition of ‘android::status_t android::Parcel::writeVectorSize(int)’
- 772 | status_t Parcel::writeVectorSize(const std::unique_ptr<std::vector<T>>& val) {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:763:10: note: ‘android::status_t android::Parcel::writeVectorSize(int)’ previously declared here
- 763 | status_t Parcel::writeVectorSize(const std::optional<std::vector<T>>& val) {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:796:10: error: ‘android::status_t android::Parcel::resizeOutVector’ is not a static data member of ‘class android::Parcel’
- 796 | status_t Parcel::resizeOutVector(std::optional<std::vector<T>>* val) const {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:796:39: error: template definition of non-template ‘android::status_t android::Parcel::resizeOutVector’
- 796 | status_t Parcel::resizeOutVector(std::optional<std::vector<T>>* val) const {
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:796:39: error: ‘optional’ is not a member of ‘std’
- ./frameworks/native/include/binder/Parcel.h:796:39: note: ‘std::optional’ is only available from C++17 onwards
- ./frameworks/native/include/binder/Parcel.h:796:61: error: expected primary-expression before ‘>’ token
- 796 | status_t Parcel::resizeOutVector(std::optional<std::vector<T>>* val) const {
- | ^~
- ./frameworks/native/include/binder/Parcel.h:796:65: error: ‘val’ was not declared in this scope
- 796 | status_t Parcel::resizeOutVector(std::optional<std::vector<T>>* val) const {
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:812:10: error: ‘android::status_t android::Parcel::resizeOutVector’ is not a static data member of ‘class android::Parcel’
- 812 | status_t Parcel::resizeOutVector(std::unique_ptr<std::vector<T>>* val) const {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:812:39: error: template definition of non-template ‘android::status_t android::Parcel::resizeOutVector’
- 812 | status_t Parcel::resizeOutVector(std::unique_ptr<std::vector<T>>* val) const {
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:812:39: error: ‘unique_ptr’ is not a member of ‘std’
- ./frameworks/native/include/binder/Parcel.h:812:39: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- ./frameworks/native/include/binder/Parcel.h:812:63: error: expected primary-expression before ‘>’ token
- 812 | status_t Parcel::resizeOutVector(std::unique_ptr<std::vector<T>>* val) const {
- | ^~
- ./frameworks/native/include/binder/Parcel.h:812:67: error: ‘val’ was not declared in this scope
- 812 | status_t Parcel::resizeOutVector(std::unique_ptr<std::vector<T>>* val) const {
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:844:10: error: ‘android::status_t android::Parcel::reserveOutVector’ is not a static data member of ‘class android::Parcel’
- 844 | status_t Parcel::reserveOutVector(std::optional<std::vector<T>>* val, size_t* size) const {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:844:40: error: template definition of non-template ‘android::status_t android::Parcel::reserveOutVector’
- 844 | status_t Parcel::reserveOutVector(std::optional<std::vector<T>>* val, size_t* size) const {
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:844:40: error: ‘optional’ is not a member of ‘std’
- ./frameworks/native/include/binder/Parcel.h:844:40: note: ‘std::optional’ is only available from C++17 onwards
- ./frameworks/native/include/binder/Parcel.h:844:62: error: expected primary-expression before ‘>’ token
- 844 | status_t Parcel::reserveOutVector(std::optional<std::vector<T>>* val, size_t* size) const {
- | ^~
- ./frameworks/native/include/binder/Parcel.h:844:66: error: ‘val’ was not declared in this scope
- 844 | status_t Parcel::reserveOutVector(std::optional<std::vector<T>>* val, size_t* size) const {
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:844:77: error: expected primary-expression before ‘*’ token
- 844 | status_t Parcel::reserveOutVector(std::optional<std::vector<T>>* val, size_t* size) const {
- | ^
- ./frameworks/native/include/binder/Parcel.h:844:79: error: ‘size’ was not declared in this scope
- 844 | status_t Parcel::reserveOutVector(std::optional<std::vector<T>>* val, size_t* size) const {
- | ^~~~
- ./frameworks/native/include/binder/Parcel.h:863:10: error: ‘android::status_t android::Parcel::reserveOutVector’ is not a static data member of ‘class android::Parcel’
- 863 | status_t Parcel::reserveOutVector(std::unique_ptr<std::vector<T>>* val,
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:863:40: error: template definition of non-template ‘android::status_t android::Parcel::reserveOutVector’
- 863 | status_t Parcel::reserveOutVector(std::unique_ptr<std::vector<T>>* val,
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:863:40: error: ‘unique_ptr’ is not a member of ‘std’
- ./frameworks/native/include/binder/Parcel.h:863:40: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- ./frameworks/native/include/binder/Parcel.h:863:64: error: expected primary-expression before ‘>’ token
- 863 | status_t Parcel::reserveOutVector(std::unique_ptr<std::vector<T>>* val,
- | ^~
- ./frameworks/native/include/binder/Parcel.h:863:68: error: ‘val’ was not declared in this scope
- 863 | status_t Parcel::reserveOutVector(std::unique_ptr<std::vector<T>>* val,
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:864:41: error: expected primary-expression before ‘*’ token
- 864 | size_t* size) const {
- | ^
- ./frameworks/native/include/binder/Parcel.h:864:43: error: ‘size’ was not declared in this scope
- 864 | size_t* size) const {
- | ^~~~
- ./frameworks/native/include/binder/Parcel.h:957:10: error: ‘android::status_t android::Parcel::readNullableTypedVector’ is not a static data member of ‘class android::Parcel’
- 957 | status_t Parcel::readNullableTypedVector(std::optional<std::vector<T>>* val,
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:957:47: error: template definition of non-template ‘android::status_t android::Parcel::readNullableTypedVector’
- 957 | status_t Parcel::readNullableTypedVector(std::optional<std::vector<T>>* val,
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:957:47: error: ‘optional’ is not a member of ‘std’
- ./frameworks/native/include/binder/Parcel.h:957:47: note: ‘std::optional’ is only available from C++17 onwards
- ./frameworks/native/include/binder/Parcel.h:957:69: error: expected primary-expression before ‘>’ token
- 957 | status_t Parcel::readNullableTypedVector(std::optional<std::vector<T>>* val,
- | ^~
- ./frameworks/native/include/binder/Parcel.h:957:73: error: ‘val’ was not declared in this scope
- 957 | status_t Parcel::readNullableTypedVector(std::optional<std::vector<T>>* val,
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:958:50: error: expected primary-expression before ‘(’ token
- 958 | status_t(Parcel::*read_func)(T*) const) const {
- | ^
- ./frameworks/native/include/binder/Parcel.h:958:59: error: expected unqualified-id before ‘*’ token
- 958 | status_t(Parcel::*read_func)(T*) const) const {
- | ^
- ./frameworks/native/include/binder/Parcel.h:958:60: error: ‘read_func’ was not declared in this scope; did you mean ‘release_func’?
- 958 | status_t(Parcel::*read_func)(T*) const) const {
- | ^~~~~~~~~
- | release_func
- ./frameworks/native/include/binder/Parcel.h:958:72: error: expected primary-expression before ‘*’ token
- 958 | status_t(Parcel::*read_func)(T*) const) const {
- | ^
- ./frameworks/native/include/binder/Parcel.h:958:73: error: expected primary-expression before ‘)’ token
- 958 | status_t(Parcel::*read_func)(T*) const) const {
- | ^
- ./frameworks/native/include/binder/Parcel.h:981:10: error: ‘android::status_t android::Parcel::readNullableTypedVector’ is not a static data member of ‘class android::Parcel’
- 981 | status_t Parcel::readNullableTypedVector(std::unique_ptr<std::vector<T>>* val,
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:981:47: error: template definition of non-template ‘android::status_t android::Parcel::readNullableTypedVector’
- 981 | status_t Parcel::readNullableTypedVector(std::unique_ptr<std::vector<T>>* val,
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:981:47: error: ‘unique_ptr’ is not a member of ‘std’
- ./frameworks/native/include/binder/Parcel.h:981:47: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- ./frameworks/native/include/binder/Parcel.h:981:71: error: expected primary-expression before ‘>’ token
- 981 | status_t Parcel::readNullableTypedVector(std::unique_ptr<std::vector<T>>* val,
- | ^~
- ./frameworks/native/include/binder/Parcel.h:981:75: error: ‘val’ was not declared in this scope
- 981 | status_t Parcel::readNullableTypedVector(std::unique_ptr<std::vector<T>>* val,
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:982:50: error: expected primary-expression before ‘(’ token
- 982 | status_t(Parcel::*read_func)(T*) const) const {
- | ^
- ./frameworks/native/include/binder/Parcel.h:982:59: error: expected unqualified-id before ‘*’ token
- 982 | status_t(Parcel::*read_func)(T*) const) const {
- | ^
- ./frameworks/native/include/binder/Parcel.h:982:60: error: ‘read_func’ was not declared in this scope; did you mean ‘release_func’?
- 982 | status_t(Parcel::*read_func)(T*) const) const {
- | ^~~~~~~~~
- | release_func
- ./frameworks/native/include/binder/Parcel.h:982:72: error: expected primary-expression before ‘*’ token
- 982 | status_t(Parcel::*read_func)(T*) const) const {
- | ^
- ./frameworks/native/include/binder/Parcel.h:982:73: error: expected primary-expression before ‘)’ token
- 982 | status_t(Parcel::*read_func)(T*) const) const {
- | ^
- ./frameworks/native/include/binder/Parcel.h: In member function ‘android::status_t android::Parcel::unsafeWriteTypedVector(const std::vector<T>&, android::status_t (android::Parcel::*)(U))’:
- ./frameworks/native/include/binder/Parcel.h:1007:27: error: ‘numeric_limits’ is not a member of ‘std’
- 1007 | if (val.size() > std::numeric_limits<int32_t>::max()) {
- | ^~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1007:49: error: expected primary-expression before ‘>’ token
- 1007 | if (val.size() > std::numeric_limits<int32_t>::max()) {
- | ^
- ./frameworks/native/include/binder/Parcel.h:1007:52: error: ‘::max’ has not been declared; did you mean ‘std::max’?
- 1007 | if (val.size() > std::numeric_limits<int32_t>::max()) {
- | ^~~
- | std::max
- In file included from /usr/include/c++/9/bits/stl_tree.h:63,
- from /usr/include/c++/9/map:60,
- from ./frameworks/native/include/binder/Parcel.h:20,
- from ./frameworks/native/cmds/service/service.cpp:17:
- /usr/include/c++/9/bits/stl_algobase.h:268:5: note: ‘std::max’ declared here
- 268 | max(const _Tp& __a, const _Tp& __b, _Compare __comp)
- | ^~~
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h: At global scope:
- ./frameworks/native/include/binder/Parcel.h:1041:54: error: ‘optional’ in namespace ‘std’ does not name a template type
- 1041 | status_t Parcel::writeNullableTypedVector(const std::optional<std::vector<T>>& val,
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1041:49: note: ‘std::optional’ is only available from C++17 onwards
- 1041 | status_t Parcel::writeNullableTypedVector(const std::optional<std::vector<T>>& val,
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1041:62: error: expected ‘,’ or ‘...’ before ‘<’ token
- 1041 | status_t Parcel::writeNullableTypedVector(const std::optional<std::vector<T>>& val,
- | ^
- ./frameworks/native/include/binder/Parcel.h: In member function ‘android::status_t android::Parcel::writeNullableTypedVector(int)’:
- ./frameworks/native/include/binder/Parcel.h:1043:10: error: ‘val’ was not declared in this scope
- 1043 | if (!val) {
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1047:36: error: ‘val’ was not declared in this scope
- 1047 | return unsafeWriteTypedVector(*val, write_func);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1047:41: error: ‘write_func’ was not declared in this scope
- 1047 | return unsafeWriteTypedVector(*val, write_func);
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h: At global scope:
- ./frameworks/native/include/binder/Parcel.h:1051:54: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 1051 | status_t Parcel::writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val,
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1051:49: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 1051 | status_t Parcel::writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val,
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1051:64: error: expected ‘,’ or ‘...’ before ‘<’ token
- 1051 | status_t Parcel::writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val,
- | ^
- ./frameworks/native/include/binder/Parcel.h:1051:10: error: redefinition of ‘android::status_t android::Parcel::writeNullableTypedVector(int)’
- 1051 | status_t Parcel::writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val,
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1041:10: note: ‘android::status_t android::Parcel::writeNullableTypedVector(int)’ previously declared here
- 1041 | status_t Parcel::writeNullableTypedVector(const std::optional<std::vector<T>>& val,
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1061:54: error: ‘optional’ in namespace ‘std’ does not name a template type
- 1061 | status_t Parcel::writeNullableTypedVector(const std::optional<std::vector<T>>& val,
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1061:49: note: ‘std::optional’ is only available from C++17 onwards
- 1061 | status_t Parcel::writeNullableTypedVector(const std::optional<std::vector<T>>& val,
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1061:62: error: expected ‘,’ or ‘...’ before ‘<’ token
- 1061 | status_t Parcel::writeNullableTypedVector(const std::optional<std::vector<T>>& val,
- | ^
- ./frameworks/native/include/binder/Parcel.h:1061:10: error: redefinition of ‘android::status_t android::Parcel::writeNullableTypedVector(int)’
- 1061 | status_t Parcel::writeNullableTypedVector(const std::optional<std::vector<T>>& val,
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1041:10: note: ‘android::status_t android::Parcel::writeNullableTypedVector(int)’ previously declared here
- 1041 | status_t Parcel::writeNullableTypedVector(const std::optional<std::vector<T>>& val,
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1071:54: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 1071 | status_t Parcel::writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val,
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1071:49: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 1071 | status_t Parcel::writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val,
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1071:64: error: expected ‘,’ or ‘...’ before ‘<’ token
- 1071 | status_t Parcel::writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val,
- | ^
- ./frameworks/native/include/binder/Parcel.h:1071:10: error: redefinition of ‘android::status_t android::Parcel::writeNullableTypedVector(int)’
- 1071 | status_t Parcel::writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val,
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1041:10: note: ‘android::status_t android::Parcel::writeNullableTypedVector(int)’ previously declared here
- 1041 | status_t Parcel::writeNullableTypedVector(const std::optional<std::vector<T>>& val,
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1086:10: error: ‘android::status_t android::Parcel::readParcelableVector’ is not a static data member of ‘class android::Parcel’
- 1086 | status_t Parcel::readParcelableVector(std::optional<std::vector<std::optional<T>>>* val) const {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1086:44: error: template definition of non-template ‘android::status_t android::Parcel::readParcelableVector’
- 1086 | status_t Parcel::readParcelableVector(std::optional<std::vector<std::optional<T>>>* val) const {
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1086:44: error: ‘optional’ is not a member of ‘std’
- ./frameworks/native/include/binder/Parcel.h:1086:44: note: ‘std::optional’ is only available from C++17 onwards
- ./frameworks/native/include/binder/Parcel.h:1086:70: error: ‘optional’ is not a member of ‘std’
- 1086 | status_t Parcel::readParcelableVector(std::optional<std::vector<std::optional<T>>>* val) const {
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1086:70: note: ‘std::optional’ is only available from C++17 onwards
- ./frameworks/native/include/binder/Parcel.h:1086:70: error: ‘optional’ is not a member of ‘std’
- ./frameworks/native/include/binder/Parcel.h:1086:70: note: ‘std::optional’ is only available from C++17 onwards
- ./frameworks/native/include/binder/Parcel.h:1086:79: error: template argument 1 is invalid
- 1086 | status_t Parcel::readParcelableVector(std::optional<std::vector<std::optional<T>>>* val) const {
- | ^
- ./frameworks/native/include/binder/Parcel.h:1086:79: error: template argument 2 is invalid
- ./frameworks/native/include/binder/Parcel.h:1086:82: error: expected primary-expression before ‘>’ token
- 1086 | status_t Parcel::readParcelableVector(std::optional<std::vector<std::optional<T>>>* val) const {
- | ^
- ./frameworks/native/include/binder/Parcel.h:1086:85: error: ‘val’ was not declared in this scope
- 1086 | status_t Parcel::readParcelableVector(std::optional<std::vector<std::optional<T>>>* val) const {
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1110:10: error: ‘android::status_t android::Parcel::readParcelableVector’ is not a static data member of ‘class android::Parcel’
- 1110 | status_t Parcel::readParcelableVector(std::unique_ptr<std::vector<std::unique_ptr<T>>>* val) const {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1110:44: error: template definition of non-template ‘android::status_t android::Parcel::readParcelableVector’
- 1110 | status_t Parcel::readParcelableVector(std::unique_ptr<std::vector<std::unique_ptr<T>>>* val) const {
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1110:44: error: ‘unique_ptr’ is not a member of ‘std’
- ./frameworks/native/include/binder/Parcel.h:1110:44: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- ./frameworks/native/include/binder/Parcel.h:1110:72: error: ‘unique_ptr’ is not a member of ‘std’
- 1110 | status_t Parcel::readParcelableVector(std::unique_ptr<std::vector<std::unique_ptr<T>>>* val) const {
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1110:72: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- ./frameworks/native/include/binder/Parcel.h:1110:72: error: ‘unique_ptr’ is not a member of ‘std’
- ./frameworks/native/include/binder/Parcel.h:1110:72: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- ./frameworks/native/include/binder/Parcel.h:1110:83: error: template argument 1 is invalid
- 1110 | status_t Parcel::readParcelableVector(std::unique_ptr<std::vector<std::unique_ptr<T>>>* val) const {
- | ^
- ./frameworks/native/include/binder/Parcel.h:1110:83: error: template argument 2 is invalid
- ./frameworks/native/include/binder/Parcel.h:1110:86: error: expected primary-expression before ‘>’ token
- 1110 | status_t Parcel::readParcelableVector(std::unique_ptr<std::vector<std::unique_ptr<T>>>* val) const {
- | ^
- ./frameworks/native/include/binder/Parcel.h:1110:89: error: ‘val’ was not declared in this scope
- 1110 | status_t Parcel::readParcelableVector(std::unique_ptr<std::vector<std::unique_ptr<T>>>* val) const {
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1134:10: error: ‘android::status_t android::Parcel::readParcelable’ is not a static data member of ‘class android::Parcel’
- 1134 | status_t Parcel::readParcelable(std::optional<T>* parcelable) const {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1134:38: error: template definition of non-template ‘android::status_t android::Parcel::readParcelable’
- 1134 | status_t Parcel::readParcelable(std::optional<T>* parcelable) const {
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1134:38: error: ‘optional’ is not a member of ‘std’
- ./frameworks/native/include/binder/Parcel.h:1134:38: note: ‘std::optional’ is only available from C++17 onwards
- ./frameworks/native/include/binder/Parcel.h:1134:48: error: expected primary-expression before ‘>’ token
- 1134 | status_t Parcel::readParcelable(std::optional<T>* parcelable) const {
- | ^
- ./frameworks/native/include/binder/Parcel.h:1134:51: error: ‘parcelable’ was not declared in this scope; did you mean ‘Parcelable’?
- 1134 | status_t Parcel::readParcelable(std::optional<T>* parcelable) const {
- | ^~~~~~~~~~
- | Parcelable
- ./frameworks/native/include/binder/Parcel.h:1157:10: error: ‘android::status_t android::Parcel::readParcelable’ is not a static data member of ‘class android::Parcel’
- 1157 | status_t Parcel::readParcelable(std::unique_ptr<T>* parcelable) const {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1157:38: error: template definition of non-template ‘android::status_t android::Parcel::readParcelable’
- 1157 | status_t Parcel::readParcelable(std::unique_ptr<T>* parcelable) const {
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1157:38: error: ‘unique_ptr’ is not a member of ‘std’
- ./frameworks/native/include/binder/Parcel.h:1157:38: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- ./frameworks/native/include/binder/Parcel.h:1157:50: error: expected primary-expression before ‘>’ token
- 1157 | status_t Parcel::readParcelable(std::unique_ptr<T>* parcelable) const {
- | ^
- ./frameworks/native/include/binder/Parcel.h:1157:53: error: ‘parcelable’ was not declared in this scope; did you mean ‘Parcelable’?
- 1157 | status_t Parcel::readParcelable(std::unique_ptr<T>* parcelable) const {
- | ^~~~~~~~~~
- | Parcelable
- ./frameworks/native/include/binder/Parcel.h:1180:53: error: ‘optional’ in namespace ‘std’ does not name a template type
- 1180 | status_t Parcel::writeNullableParcelable(const std::optional<T>& parcelable) {
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1180:48: note: ‘std::optional’ is only available from C++17 onwards
- 1180 | status_t Parcel::writeNullableParcelable(const std::optional<T>& parcelable) {
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1180:61: error: expected ‘,’ or ‘...’ before ‘<’ token
- 1180 | status_t Parcel::writeNullableParcelable(const std::optional<T>& parcelable) {
- | ^
- ./frameworks/native/include/binder/Parcel.h: In member function ‘android::status_t android::Parcel::writeNullableParcelable(int)’:
- ./frameworks/native/include/binder/Parcel.h:1181:39: error: ‘parcelable’ was not declared in this scope; did you mean ‘Parcelable’?
- 1181 | return writeRawNullableParcelable(parcelable ? &*parcelable : nullptr);
- | ^~~~~~~~~~
- | Parcelable
- ./frameworks/native/include/binder/Parcel.h: At global scope:
- ./frameworks/native/include/binder/Parcel.h:1185:53: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 1185 | status_t Parcel::writeNullableParcelable(const std::unique_ptr<T>& parcelable) {
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1185:48: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 1185 | status_t Parcel::writeNullableParcelable(const std::unique_ptr<T>& parcelable) {
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1185:63: error: expected ‘,’ or ‘...’ before ‘<’ token
- 1185 | status_t Parcel::writeNullableParcelable(const std::unique_ptr<T>& parcelable) {
- | ^
- ./frameworks/native/include/binder/Parcel.h:1185:10: error: redefinition of ‘android::status_t android::Parcel::writeNullableParcelable(int)’
- 1185 | status_t Parcel::writeNullableParcelable(const std::unique_ptr<T>& parcelable) {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1180:10: note: ‘android::status_t android::Parcel::writeNullableParcelable(int)’ previously declared here
- 1180 | status_t Parcel::writeNullableParcelable(const std::optional<T>& parcelable) {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1195:51: error: ‘optional’ in namespace ‘std’ does not name a template type
- 1195 | status_t Parcel::writeParcelableVector(const std::optional<std::vector<std::optional<T>>>& val) {
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1195:46: note: ‘std::optional’ is only available from C++17 onwards
- 1195 | status_t Parcel::writeParcelableVector(const std::optional<std::vector<std::optional<T>>>& val) {
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1195:59: error: expected ‘,’ or ‘...’ before ‘<’ token
- 1195 | status_t Parcel::writeParcelableVector(const std::optional<std::vector<std::optional<T>>>& val) {
- | ^
- ./frameworks/native/include/binder/Parcel.h: In member function ‘android::status_t android::Parcel::writeParcelableVector(int)’:
- ./frameworks/native/include/binder/Parcel.h:1196:10: error: ‘val’ was not declared in this scope
- 1196 | if (!val) {
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1200:28: error: ‘optional’ in namespace ‘std’ does not name a template type
- 1200 | using NullableT = std::optional<T>;
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1200:23: note: ‘std::optional’ is only available from C++17 onwards
- 1200 | using NullableT = std::optional<T>;
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1201:35: error: ‘NullableT’ was not declared in this scope
- 1201 | return unsafeWriteTypedVector<NullableT, const NullableT&>(*val, &Parcel::writeNullableParcelable);
- | ^~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1201:52: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
- 1201 | return unsafeWriteTypedVector<NullableT, const NullableT&>(*val, &Parcel::writeNullableParcelable);
- | ^~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1201:12: error: parse error in template argument list
- 1201 | return unsafeWriteTypedVector<NullableT, const NullableT&>(*val, &Parcel::writeNullableParcelable);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1201:65: error: ‘val’ was not declared in this scope
- 1201 | return unsafeWriteTypedVector<NullableT, const NullableT&>(*val, &Parcel::writeNullableParcelable);
- | ^~~
- ./frameworks/native/include/binder/Parcel.h: At global scope:
- ./frameworks/native/include/binder/Parcel.h:1205:51: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 1205 | status_t Parcel::writeParcelableVector(const std::unique_ptr<std::vector<std::unique_ptr<T>>>& val) {
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1205:46: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 1205 | status_t Parcel::writeParcelableVector(const std::unique_ptr<std::vector<std::unique_ptr<T>>>& val) {
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1205:61: error: expected ‘,’ or ‘...’ before ‘<’ token
- 1205 | status_t Parcel::writeParcelableVector(const std::unique_ptr<std::vector<std::unique_ptr<T>>>& val) {
- | ^
- ./frameworks/native/include/binder/Parcel.h:1205:10: error: redefinition of ‘android::status_t android::Parcel::writeParcelableVector(int)’
- 1205 | status_t Parcel::writeParcelableVector(const std::unique_ptr<std::vector<std::unique_ptr<T>>>& val) {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1195:10: note: ‘android::status_t android::Parcel::writeParcelableVector(int)’ previously declared here
- 1195 | status_t Parcel::writeParcelableVector(const std::optional<std::vector<std::optional<T>>>& val) {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1214:51: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
- 1214 | status_t Parcel::writeParcelableVector(const std::shared_ptr<std::vector<std::unique_ptr<T>>>& val) {
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1214:46: note: ‘std::shared_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 1214 | status_t Parcel::writeParcelableVector(const std::shared_ptr<std::vector<std::unique_ptr<T>>>& val) {
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1214:61: error: expected ‘,’ or ‘...’ before ‘<’ token
- 1214 | status_t Parcel::writeParcelableVector(const std::shared_ptr<std::vector<std::unique_ptr<T>>>& val) {
- | ^
- ./frameworks/native/include/binder/Parcel.h:1214:10: error: redefinition of ‘android::status_t android::Parcel::writeParcelableVector(int)’
- 1214 | status_t Parcel::writeParcelableVector(const std::shared_ptr<std::vector<std::unique_ptr<T>>>& val) {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1195:10: note: ‘android::status_t android::Parcel::writeParcelableVector(int)’ previously declared here
- 1195 | status_t Parcel::writeParcelableVector(const std::optional<std::vector<std::optional<T>>>& val) {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1223:44: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’?
- 1223 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int32_t>, bool>>
- | ^~~~~~~~~
- | is_same
- ./frameworks/native/include/binder/Parcel.h:1223:44: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’?
- 1223 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int32_t>, bool>>
- | ^~~~~~~~~
- | is_same
- ./frameworks/native/include/binder/Parcel.h:1223:96: error: template argument 1 is invalid
- 1223 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int32_t>, bool>>
- | ^
- ./frameworks/native/include/binder/Parcel.h:1223:103: error: expected ‘>’ before ‘>>’ token
- 1223 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int32_t>, bool>>
- | ^~
- ./frameworks/native/include/binder/Parcel.h:1224:10: error: no declaration matches ‘android::status_t android::Parcel::writeEnum(const T&)’
- 1224 | status_t Parcel::writeEnum(const T& val) {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1224:10: note: no functions named ‘android::status_t android::Parcel::writeEnum(const T&)’
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:55:7: note: ‘class android::Parcel’ defined here
- 55 | class Parcel {
- | ^~~~~~
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:1227:44: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’?
- 1227 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int64_t>, bool>>
- | ^~~~~~~~~
- | is_same
- ./frameworks/native/include/binder/Parcel.h:1227:44: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’?
- 1227 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int64_t>, bool>>
- | ^~~~~~~~~
- | is_same
- ./frameworks/native/include/binder/Parcel.h:1227:96: error: template argument 1 is invalid
- 1227 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int64_t>, bool>>
- | ^
- ./frameworks/native/include/binder/Parcel.h:1227:103: error: expected ‘>’ before ‘>>’ token
- 1227 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int64_t>, bool>>
- | ^~
- ./frameworks/native/include/binder/Parcel.h:1228:10: error: no declaration matches ‘android::status_t android::Parcel::writeEnum(const T&)’
- 1228 | status_t Parcel::writeEnum(const T& val) {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1228:10: note: no functions named ‘android::status_t android::Parcel::writeEnum(const T&)’
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:55:7: note: ‘class android::Parcel’ defined here
- 55 | class Parcel {
- | ^~~~~~
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:1232:44: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 1232 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:1232:44: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 1232 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:1232:55: error: template argument 1 is invalid
- 1232 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^
- ./frameworks/native/include/binder/Parcel.h:1232:60: error: expected ‘>’
- 1232 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1233:10: error: no declaration matches ‘android::status_t android::Parcel::writeEnumVector(const std::vector<T>&)’
- 1233 | status_t Parcel::writeEnumVector(const std::vector<T>& val) {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1233:10: note: no functions named ‘android::status_t android::Parcel::writeEnumVector(const std::vector<T>&)’
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:55:7: note: ‘class android::Parcel’ defined here
- 55 | class Parcel {
- | ^~~~~~
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:1236:44: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 1236 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:1236:44: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 1236 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:1236:55: error: template argument 1 is invalid
- 1236 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^
- ./frameworks/native/include/binder/Parcel.h:1236:60: error: expected ‘>’
- 1236 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1237:45: error: ‘optional’ in namespace ‘std’ does not name a template type
- 1237 | status_t Parcel::writeEnumVector(const std::optional<std::vector<T>>& val) {
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1237:40: note: ‘std::optional’ is only available from C++17 onwards
- 1237 | status_t Parcel::writeEnumVector(const std::optional<std::vector<T>>& val) {
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1237:53: error: expected ‘,’ or ‘...’ before ‘<’ token
- 1237 | status_t Parcel::writeEnumVector(const std::optional<std::vector<T>>& val) {
- | ^
- ./frameworks/native/include/binder/Parcel.h:1237:10: error: no declaration matches ‘android::status_t android::Parcel::writeEnumVector(int)’
- 1237 | status_t Parcel::writeEnumVector(const std::optional<std::vector<T>>& val) {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1237:10: note: no functions named ‘android::status_t android::Parcel::writeEnumVector(int)’
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:55:7: note: ‘class android::Parcel’ defined here
- 55 | class Parcel {
- | ^~~~~~
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:1241:44: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 1241 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:1241:44: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 1241 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:1241:55: error: template argument 1 is invalid
- 1241 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^
- ./frameworks/native/include/binder/Parcel.h:1241:60: error: expected ‘>’
- 1241 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1242:45: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 1242 | status_t Parcel::writeEnumVector(const std::unique_ptr<std::vector<T>>& val) {
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1242:40: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 1242 | status_t Parcel::writeEnumVector(const std::unique_ptr<std::vector<T>>& val) {
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1242:55: error: expected ‘,’ or ‘...’ before ‘<’ token
- 1242 | status_t Parcel::writeEnumVector(const std::unique_ptr<std::vector<T>>& val) {
- | ^
- ./frameworks/native/include/binder/Parcel.h:1242:10: error: no declaration matches ‘android::status_t android::Parcel::writeEnumVector(int)’
- 1242 | status_t Parcel::writeEnumVector(const std::unique_ptr<std::vector<T>>& val) {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1242:10: note: no functions named ‘android::status_t android::Parcel::writeEnumVector(int)’
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:55:7: note: ‘class android::Parcel’ defined here
- 55 | class Parcel {
- | ^~~~~~
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:1246:44: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 1246 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:1246:44: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 1246 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:1246:55: error: template argument 1 is invalid
- 1246 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^
- ./frameworks/native/include/binder/Parcel.h:1246:60: error: expected ‘>’ before ‘!’ token
- 1246 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^
- ./frameworks/native/include/binder/Parcel.h:1247:10: error: no declaration matches ‘android::status_t android::Parcel::writeEnumVector(const std::vector<T>&)’
- 1247 | status_t Parcel::writeEnumVector(const std::vector<T>& val) {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1247:10: note: no functions named ‘android::status_t android::Parcel::writeEnumVector(const std::vector<T>&)’
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:55:7: note: ‘class android::Parcel’ defined here
- 55 | class Parcel {
- | ^~~~~~
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:1250:44: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 1250 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:1250:44: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 1250 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:1250:55: error: template argument 1 is invalid
- 1250 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^
- ./frameworks/native/include/binder/Parcel.h:1250:60: error: expected ‘>’ before ‘!’ token
- 1250 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^
- ./frameworks/native/include/binder/Parcel.h:1251:45: error: ‘optional’ in namespace ‘std’ does not name a template type
- 1251 | status_t Parcel::writeEnumVector(const std::optional<std::vector<T>>& val) {
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1251:40: note: ‘std::optional’ is only available from C++17 onwards
- 1251 | status_t Parcel::writeEnumVector(const std::optional<std::vector<T>>& val) {
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1251:53: error: expected ‘,’ or ‘...’ before ‘<’ token
- 1251 | status_t Parcel::writeEnumVector(const std::optional<std::vector<T>>& val) {
- | ^
- ./frameworks/native/include/binder/Parcel.h:1251:10: error: no declaration matches ‘android::status_t android::Parcel::writeEnumVector(int)’
- 1251 | status_t Parcel::writeEnumVector(const std::optional<std::vector<T>>& val) {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1251:10: note: no functions named ‘android::status_t android::Parcel::writeEnumVector(int)’
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:55:7: note: ‘class android::Parcel’ defined here
- 55 | class Parcel {
- | ^~~~~~
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:1254:44: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 1254 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:1254:44: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 1254 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:1254:55: error: template argument 1 is invalid
- 1254 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^
- ./frameworks/native/include/binder/Parcel.h:1254:60: error: expected ‘>’ before ‘!’ token
- 1254 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^
- ./frameworks/native/include/binder/Parcel.h:1255:45: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
- 1255 | status_t Parcel::writeEnumVector(const std::unique_ptr<std::vector<T>>& val) {
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1255:40: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- 1255 | status_t Parcel::writeEnumVector(const std::unique_ptr<std::vector<T>>& val) {
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1255:55: error: expected ‘,’ or ‘...’ before ‘<’ token
- 1255 | status_t Parcel::writeEnumVector(const std::unique_ptr<std::vector<T>>& val) {
- | ^
- ./frameworks/native/include/binder/Parcel.h:1255:10: error: no declaration matches ‘android::status_t android::Parcel::writeEnumVector(int)’
- 1255 | status_t Parcel::writeEnumVector(const std::unique_ptr<std::vector<T>>& val) {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1255:10: note: no functions named ‘android::status_t android::Parcel::writeEnumVector(int)’
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:55:7: note: ‘class android::Parcel’ defined here
- 55 | class Parcel {
- | ^~~~~~
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:1259:44: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’?
- 1259 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int32_t>, bool>>
- | ^~~~~~~~~
- | is_same
- ./frameworks/native/include/binder/Parcel.h:1259:44: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’?
- 1259 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int32_t>, bool>>
- | ^~~~~~~~~
- | is_same
- ./frameworks/native/include/binder/Parcel.h:1259:96: error: template argument 1 is invalid
- 1259 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int32_t>, bool>>
- | ^
- ./frameworks/native/include/binder/Parcel.h:1259:103: error: expected ‘>’ before ‘>>’ token
- 1259 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int32_t>, bool>>
- | ^~
- ./frameworks/native/include/binder/Parcel.h:1260:10: error: no declaration matches ‘android::status_t android::Parcel::readEnum(T*) const’
- 1260 | status_t Parcel::readEnum(T* pArg) const {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1260:10: note: no functions named ‘android::status_t android::Parcel::readEnum(T*) const’
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:55:7: note: ‘class android::Parcel’ defined here
- 55 | class Parcel {
- | ^~~~~~
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:1263:44: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’?
- 1263 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int64_t>, bool>>
- | ^~~~~~~~~
- | is_same
- ./frameworks/native/include/binder/Parcel.h:1263:44: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’?
- 1263 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int64_t>, bool>>
- | ^~~~~~~~~
- | is_same
- ./frameworks/native/include/binder/Parcel.h:1263:96: error: template argument 1 is invalid
- 1263 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int64_t>, bool>>
- | ^
- ./frameworks/native/include/binder/Parcel.h:1263:103: error: expected ‘>’ before ‘>>’ token
- 1263 | template<typename T, std::enable_if_t<std::is_same_v<typename std::underlying_type_t<T>,int64_t>, bool>>
- | ^~
- ./frameworks/native/include/binder/Parcel.h:1264:10: error: no declaration matches ‘android::status_t android::Parcel::readEnum(T*) const’
- 1264 | status_t Parcel::readEnum(T* pArg) const {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1264:10: note: no functions named ‘android::status_t android::Parcel::readEnum(T*) const’
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:55:7: note: ‘class android::Parcel’ defined here
- 55 | class Parcel {
- | ^~~~~~
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:1279:44: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 1279 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:1279:44: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 1279 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:1279:55: error: template argument 1 is invalid
- 1279 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^
- ./frameworks/native/include/binder/Parcel.h:1279:60: error: expected ‘>’
- 1279 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1280:10: error: no declaration matches ‘android::status_t android::Parcel::readEnumVector(std::vector<T>*) const’
- 1280 | status_t Parcel::readEnumVector(std::vector<T>* val) const {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1280:10: note: no functions named ‘android::status_t android::Parcel::readEnumVector(std::vector<T>*) const’
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:55:7: note: ‘class android::Parcel’ defined here
- 55 | class Parcel {
- | ^~~~~~
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:1285:44: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 1285 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:1285:44: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 1285 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:1285:55: error: template argument 1 is invalid
- 1285 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^
- ./frameworks/native/include/binder/Parcel.h:1285:60: error: expected ‘>’
- 1285 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1286:10: error: ‘android::status_t android::Parcel::readEnumVector’ is not a static data member of ‘class android::Parcel’
- 1286 | status_t Parcel::readEnumVector(std::optional<std::vector<T>>* val) const {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1286:38: error: template definition of non-template ‘android::status_t android::Parcel::readEnumVector’
- 1286 | status_t Parcel::readEnumVector(std::optional<std::vector<T>>* val) const {
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1286:38: error: ‘optional’ is not a member of ‘std’
- ./frameworks/native/include/binder/Parcel.h:1286:38: note: ‘std::optional’ is only available from C++17 onwards
- ./frameworks/native/include/binder/Parcel.h:1286:60: error: expected primary-expression before ‘>’ token
- 1286 | status_t Parcel::readEnumVector(std::optional<std::vector<T>>* val) const {
- | ^~
- ./frameworks/native/include/binder/Parcel.h:1286:64: error: ‘val’ was not declared in this scope
- 1286 | status_t Parcel::readEnumVector(std::optional<std::vector<T>>* val) const {
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1296:44: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 1296 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:1296:44: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 1296 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:1296:55: error: template argument 1 is invalid
- 1296 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^
- ./frameworks/native/include/binder/Parcel.h:1296:60: error: expected ‘>’
- 1296 | template<typename T, std::enable_if_t<std::is_enum_v<T> && std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1297:10: error: ‘android::status_t android::Parcel::readEnumVector’ is not a static data member of ‘class android::Parcel’
- 1297 | status_t Parcel::readEnumVector(std::unique_ptr<std::vector<T>>* val) const {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1297:38: error: template definition of non-template ‘android::status_t android::Parcel::readEnumVector’
- 1297 | status_t Parcel::readEnumVector(std::unique_ptr<std::vector<T>>* val) const {
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1297:38: error: ‘unique_ptr’ is not a member of ‘std’
- ./frameworks/native/include/binder/Parcel.h:1297:38: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- ./frameworks/native/include/binder/Parcel.h:1297:62: error: expected primary-expression before ‘>’ token
- 1297 | status_t Parcel::readEnumVector(std::unique_ptr<std::vector<T>>* val) const {
- | ^~
- ./frameworks/native/include/binder/Parcel.h:1297:66: error: ‘val’ was not declared in this scope
- 1297 | status_t Parcel::readEnumVector(std::unique_ptr<std::vector<T>>* val) const {
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1307:44: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 1307 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:1307:44: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 1307 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:1307:55: error: template argument 1 is invalid
- 1307 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^
- ./frameworks/native/include/binder/Parcel.h:1307:60: error: expected ‘>’ before ‘!’ token
- 1307 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^
- ./frameworks/native/include/binder/Parcel.h:1308:10: error: no declaration matches ‘android::status_t android::Parcel::readEnumVector(std::vector<T>*) const’
- 1308 | status_t Parcel::readEnumVector(std::vector<T>* val) const {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1308:10: note: no functions named ‘android::status_t android::Parcel::readEnumVector(std::vector<T>*) const’
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:55:7: note: ‘class android::Parcel’ defined here
- 55 | class Parcel {
- | ^~~~~~
- In file included from ./frameworks/native/cmds/service/service.cpp:17:
- ./frameworks/native/include/binder/Parcel.h:1311:44: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 1311 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:1311:44: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 1311 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:1311:55: error: template argument 1 is invalid
- 1311 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^
- ./frameworks/native/include/binder/Parcel.h:1311:60: error: expected ‘>’ before ‘!’ token
- 1311 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^
- ./frameworks/native/include/binder/Parcel.h:1312:10: error: ‘android::status_t android::Parcel::readEnumVector’ is not a static data member of ‘class android::Parcel’
- 1312 | status_t Parcel::readEnumVector(std::optional<std::vector<T>>* val) const {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1312:38: error: template definition of non-template ‘android::status_t android::Parcel::readEnumVector’
- 1312 | status_t Parcel::readEnumVector(std::optional<std::vector<T>>* val) const {
- | ^~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1312:38: error: ‘optional’ is not a member of ‘std’
- ./frameworks/native/include/binder/Parcel.h:1312:38: note: ‘std::optional’ is only available from C++17 onwards
- ./frameworks/native/include/binder/Parcel.h:1312:60: error: expected primary-expression before ‘>’ token
- 1312 | status_t Parcel::readEnumVector(std::optional<std::vector<T>>* val) const {
- | ^~
- ./frameworks/native/include/binder/Parcel.h:1312:64: error: ‘val’ was not declared in this scope
- 1312 | status_t Parcel::readEnumVector(std::optional<std::vector<T>>* val) const {
- | ^~~
- ./frameworks/native/include/binder/Parcel.h:1315:44: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 1315 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:1315:44: error: ‘is_enum_v’ is not a member of ‘std’; did you mean ‘is_enum’?
- 1315 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^~~~~~~~~
- | is_enum
- ./frameworks/native/include/binder/Parcel.h:1315:55: error: template argument 1 is invalid
- 1315 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^
- ./frameworks/native/include/binder/Parcel.h:1315:60: error: expected ‘>’ before ‘!’ token
- 1315 | template<typename T, std::enable_if_t<std::is_enum_v<T> && !std::is_same_v<typename std::underlying_type_t<T>,int8_t>, bool>>
- | ^
- ./frameworks/native/include/binder/Parcel.h:1316:10: error: ‘android::status_t android::Parcel::readEnumVector’ is not a static data member of ‘class android::Parcel’
- 1316 | status_t Parcel::readEnumVector(std::unique_ptr<std::vector<T>>* val) const {
- | ^~~~~~
- ./frameworks/native/include/binder/Parcel.h:1316:38: error: template definition of non-template ‘android::status_t android::Parcel::readEnumVector’
- 1316 | status_t Parcel::readEnumVector(std::unique_ptr<std::vector<T>>* val) const {
- | ^~~~~~~~~~
- ./frameworks/native/include/binder/Parcel.h:1316:38: error: ‘unique_ptr’ is not a member of ‘std’
- ./frameworks/native/include/binder/Parcel.h:1316:38: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; did you forget to ‘#include <memory>’?
- ./frameworks/native/include/binder/Parcel.h:1316:62: error: expected primary-expression before ‘>’ token
- 1316 | status_t Parcel::readEnumVector(std::unique_ptr<std::vector<T>>* val) const {
- | ^~
- ./frameworks/native/include/binder/Parcel.h:1316:66: error: ‘val’ was not declared in this scope
- 1316 | status_t Parcel::readEnumVector(std::unique_ptr<std::vector<T>>* val) const {
- | ^~~
- In file included from ./system/core/libutils/include/utils/KeyedVector.h:26,
- from ./frameworks/native/include/binder/ProcessState.h:21,
- from ./frameworks/native/cmds/service/service.cpp:18:
- ./system/core/libutils/include/utils/SortedVector.h:257:86: error: ‘cfi’ attribute directive ignored [-Werror=attributes]
- 257 | UTILS_VECTOR_NO_CFI void SortedVector<TYPE>::do_construct(void* storage, size_t num) const {
- | ^~~~~
- ./system/core/libutils/include/utils/SortedVector.h:267:96: error: ‘cfi’ attribute directive ignored [-Werror=attributes]
- 267 | UTILS_VECTOR_NO_CFI void SortedVector<TYPE>::do_copy(void* dest, const void* from, size_t num) const {
- | ^~~~~
- ./system/core/libutils/include/utils/SortedVector.h:272:97: error: ‘cfi’ attribute directive ignored [-Werror=attributes]
- 272 | UTILS_VECTOR_NO_CFI void SortedVector<TYPE>::do_splat(void* dest, const void* item, size_t num) const {
- | ^~~~~
- ./system/core/libutils/include/utils/SortedVector.h:277:104: error: ‘cfi’ attribute directive ignored [-Werror=attributes]
- 277 | UTILS_VECTOR_NO_CFI void SortedVector<TYPE>::do_move_forward(void* dest, const void* from, size_t num) const {
- | ^~~~~
- ./system/core/libutils/include/utils/SortedVector.h:282:105: error: ‘cfi’ attribute directive ignored [-Werror=attributes]
- 282 | UTILS_VECTOR_NO_CFI void SortedVector<TYPE>::do_move_backward(void* dest, const void* from, size_t num) const {
- | ^~~~~
- In file included from ./system/core/libutils/include/utils/RefBase.h:186,
- from ./frameworks/native/include/binder/Parcel.h:28,
- from ./frameworks/native/cmds/service/service.cpp:17:
- ./system/core/libutils/include/utils/TypeHelpers.h: In instantiation of ‘typename std::enable_if<android::use_trivial_move<TYPE>::value>::type android::move_forward_type(TYPE*, const TYPE*, size_t) [with TYPE = android::String16; typename std::enable_if<android::use_trivial_move<TYPE>::value>::type = void; size_t = long unsigned int]’:
- ./system/core/libutils/include/utils/Vector.h:418:22: required from ‘void android::Vector<TYPE>::do_move_forward(void*, const void*, size_t) const [with TYPE = android::String16; size_t = long unsigned int]’
- ./system/core/libutils/include/utils/Vector.h:417:26: required from here
- ./system/core/libutils/include/utils/TypeHelpers.h:198:12: error: ‘void* memmove(void*, const void*, size_t)’ writing to an object of type ‘class android::String16’ with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
- 198 | memmove(d, s, n*sizeof(TYPE));
- | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
- In file included from ./frameworks/native/include/binder/Parcel.h:29,
- from ./frameworks/native/cmds/service/service.cpp:17:
- ./system/core/libutils/include/utils/String16.h:39:7: note: ‘class android::String16’ declared here
- 39 | class String16
- | ^~~~~~~~
- In file included from ./system/core/libutils/include/utils/RefBase.h:186,
- from ./frameworks/native/include/binder/Parcel.h:28,
- from ./frameworks/native/cmds/service/service.cpp:17:
- ./system/core/libutils/include/utils/TypeHelpers.h: In instantiation of ‘typename std::enable_if<android::use_trivial_move<TYPE>::value>::type android::move_backward_type(TYPE*, const TYPE*, size_t) [with TYPE = android::String16; typename std::enable_if<android::use_trivial_move<TYPE>::value>::type = void; size_t = long unsigned int]’:
- ./system/core/libutils/include/utils/Vector.h:423:23: required from ‘void android::Vector<TYPE>::do_move_backward(void*, const void*, size_t) const [with TYPE = android::String16; size_t = long unsigned int]’
- ./system/core/libutils/include/utils/Vector.h:422:26: required from here
- ./system/core/libutils/include/utils/TypeHelpers.h:225:12: error: ‘void* memmove(void*, const void*, size_t)’ writing to an object of type ‘class android::String16’ with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Werror=class-memaccess]
- 225 | memmove(d, s, n*sizeof(TYPE));
- | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
- In file included from ./frameworks/native/include/binder/Parcel.h:29,
- from ./frameworks/native/cmds/service/service.cpp:17:
- ./system/core/libutils/include/utils/String16.h:39:7: note: ‘class android::String16’ declared here
- 39 | class String16
- | ^~~~~~~~
- cc1plus: all warnings being treated as errors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement