Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In file included from device/qcom/common/init/init_msm.cpp:42:
- In file included from system/core/init/util.h:31:
- system/core/init/result.h:150:12: error: call to deleted constructor of 'android::init::Error'
- return Error(errno);
- ^~~~~~~~~~~~
- system/core/init/result.h:139:5: note: 'Error' has been explicitly marked deleted here
- Error(Error&&) = delete;
- ^
- system/core/init/result.h:159:50: error: no template named 'is_same_v' in namespace 'std'; did you mean 'is_same'?
- typename = std::enable_if_t<!(std::is_same_v<std::decay_t<U>, Result<T>> &&
- ~~~~~^~~~~~~~~
- is_same
- external/libcxx/include/type_traits:856:61: note: 'is_same' declared here
- template <class _Tp, class _Up> struct _LIBCPP_TEMPLATE_VIS is_same : public false_type {};
- ^
- In file included from device/qcom/common/init/init_msm.cpp:42:
- In file included from system/core/init/util.h:31:
- system/core/init/result.h:160:45: error: expected ')'
- sizeof...(V) == 0)>>
- ^
- system/core/init/result.h:159:44: note: to match this '('
- typename = std::enable_if_t<!(std::is_same_v<std::decay_t<U>, Result<T>> &&
- ^
- system/core/init/result.h:160:63: error: expected expression
- sizeof...(V) == 0)>>
- ^
- system/core/init/result.h:203:34: error: expected ',' or '>' in template-parameter-list
- std::variant<T, ResultError> contents_;
- ^
- system/core/init/result.h:203:43: warning: declaration does not declare anything [-Wmissing-declarations]
- std::variant<T, ResultError> contents_;
- ^
- system/core/init/result.h:206:22: error: no type named 'monostate' in namespace 'std'
- using Success = std::monostate;
- ~~~~~^
- In file included from device/qcom/common/init/init_msm.cpp:42:
- system/core/init/util.h:45:8: error: use of undeclared identifier 'Success'; did you mean 'access'?
- Result<Success> WriteFile(const std::string& path, const std::string& content);
- ^~~~~~~
- access
- bionic/libc/include/unistd.h:127:5: note: 'access' declared here
- int access(const char* __path, int __mode);
- ^
- In file included from device/qcom/common/init/init_msm.cpp:42:
- system/core/init/util.h:45:8: error: template argument for template type parameter must be a type
- Result<Success> WriteFile(const std::string& path, const std::string& content);
- ^~~~~~~
- system/core/init/result.h:153:20: note: template parameter is declared here
- template <typename T>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement