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

Errors when trying to compile with -std=gnu++20 #109

Closed
russkel opened this issue Jul 28, 2022 · 2 comments
Closed

Errors when trying to compile with -std=gnu++20 #109

russkel opened this issue Jul 28, 2022 · 2 comments

Comments

@russkel
Copy link
Contributor

russkel commented Jul 28, 2022

I came across these when trying to compile xtypes components when using it in a project that is C++20 on gcc 11:

https://github.com/eProsima/xtypes/blob/main/include/xtypes/DynamicDataImpl.hpp#L145

xtypes/include/xtypes/DynamicDataImpl.hpp:145:49: error: overload resolution selected deleted operator '<<' [clang-diagnostic-error]
                ss << "<" << type_name << ">  " << node.data().value<char16_t>();

https://github.com/eProsima/xtypes/blob/main/include/xtypes/StringType.hpp#L112

xtypes/include/xtypes/StringType.hpp:112:70: error: use 'template' keyword to treat 'basic_string' as a dependent template name [clang-diagnostic-error]
        reinterpret_cast<std::basic_string<CHAR_T>*>(instance)->std::basic_string<CHAR_T>::~basic_string<CHAR_T>();
@MiguelBarro
Copy link
Contributor

Please check this is fixed in #113

@russkel
Copy link
Contributor Author

russkel commented Feb 15, 2023

It is fixed @MiguelBarro

@russkel russkel closed this as completed Dec 11, 2023
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

No branches or pull requests

2 participants