Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

c++11 building support #100

Merged
merged 6 commits into from
Aug 12, 2022
Merged

c++11 building support #100

merged 6 commits into from
Aug 12, 2022

Conversation

wbpcode
Copy link
Contributor

@wbpcode wbpcode commented Aug 11, 2022

Signed-off-by: wangbaiping wbphub@live.com

std::make_unique (from c++14) -> absl::make_unique
std::string_view (from c++17) -> absl::string_view
std::optional (from c++17) -> absl::optional
std::nullopt (from c++17) -> absl::nullopt

absl::string_view/absl::optional/absl::nullopt/... will be alias of std::string_view/std::optional/std::nullopt/... after c++17 by default. So it's ok to always use the absl::* in c++11/c++14/c++17 versions.

Signed-off-by: wangbaiping <wbphub@live.com>
@wbpcode wbpcode assigned wbpcode and wu-sheng and unassigned wbpcode Aug 11, 2022
@wu-sheng
Copy link
Member

So, we will have c++11 and c++17 in support at the same time?

@wu-sheng wu-sheng added this to the 0.5.0 milestone Aug 11, 2022
@wbpcode
Copy link
Contributor Author

wbpcode commented Aug 11, 2022

So, we will have c++11 and c++17 in support at the same time?

yep.

@wu-sheng
Copy link
Member

Could you add a CI for C++11 build and update the doc to mention 11 and 17 supported?

@wbpcode
Copy link
Contributor Author

wbpcode commented Aug 11, 2022

In fact it's build by c++11 by default for now because I remove the explicit option of --cxxopt=-std:c++17. But it's OK for me to add a new test for it.

@wbpcode
Copy link
Contributor Author

wbpcode commented Aug 11, 2022

/wait

@wbpcode
Copy link
Contributor Author

wbpcode commented Aug 11, 2022

some warnings need to be resolved.

wu-sheng and others added 5 commits August 11, 2022 22:10
Signed-off-by: wangbaiping <wbphub@live.com>
Signed-off-by: wangbaiping <wbphub@live.com>
Signed-off-by: wangbaiping <wbphub@live.com>
@@ -2,7 +2,7 @@

![cpp2sky test](https://github.com/SkyAPM/cpp2sky/workflows/cpp2sky%20test/badge.svg)

Distributed tracing and monitor SDK in CPP for Apache SkyWalking APM
Distributed tracing and monitor SDK in CPP for Apache SkyWalking APM. This SDK is compatible with C++ 17, C++ 14, and C++ 11.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@wu-sheng wu-sheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@wu-sheng wu-sheng merged commit 7276428 into SkyAPM:main Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants