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

Fix compilation error with gcc 11 #276

Merged
merged 1 commit into from
Oct 5, 2020

Conversation

stac47
Copy link

@stac47 stac47 commented Oct 5, 2020

Hello,
Fixing this compilation issue. gcc 11 does not accept this wrong constructor declaration anymore.

In file included from BUILD/jsoncons-0.157.2/include/jsoncons/basic_json.hpp:35,                                                                                                                                           from BUILD/jsoncons-0.157.2/include/jsoncons/json.hpp:10,
                 from BUILD/jsoncons-0.157.2/tests/src/JSONTestSuite_tests.cpp:13:
BUILD/jsoncons-0.157.2/include/jsoncons/json_reader.hpp:37:47: error: expected unqualified-id before 'const'
   37 |     json_utf8_to_other_visitor_adaptor<CharT>(const json_utf8_to_other_visitor_adaptor<CharT>&) = delete;
      |                                               ^~~~~
BUILD/jsoncons-0.157.2/include/jsoncons/json_reader.hpp:37:47: error: expected ')' before 'const'                                                                                                            37 |     json_utf8_to_other_visitor_adaptor<CharT>(const json_utf8_to_other_visitor_adaptor<CharT>&) = delete;
      |                                              ~^~~~~
      |                                               )

Regards,
Stac

@danielaparker danielaparker merged commit 45090bc into danielaparker:master Oct 5, 2020
@danielaparker
Copy link
Owner

Thanks!

@stac47 stac47 deleted the fix_for_gcc11 branch October 6, 2020 06:29
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