Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

使用./build.sh进行编译构建时出现无法将std::string_view转换为absl::string_view类型 #21

Open
Minghao-Liang opened this issue May 21, 2023 · 2 comments

Comments

@Minghao-Liang
Copy link

报错为error: could not convert ‘log’ from ‘const string_view’ {aka ‘const std::basic_string_view’} to ‘absl::string_view’
在文件src/wal/wal_writer.cpp中的22行使用函数absl::ComputeCrc32c(log)前加入修改类型:
absl::string_view new_log(log.data(), log.size());
再将absl::ComputeCrc32c(log)中的log改为new_log之后才编译构建成功。

@yangyang233333
Copy link
Owner

真的假的,我怎么能编过

@ZURRY3630
Copy link

编译不过的话改成std::string应该可以

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants