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++ 20 #9599

Closed
PARKGIBAEK opened this issue Mar 8, 2022 · 3 comments
Closed

C++ 20 #9599

PARKGIBAEK opened this issue Mar 8, 2022 · 3 comments

Comments

@PARKGIBAEK
Copy link

PARKGIBAEK commented Mar 8, 2022

What version of protobuf and what language are you using?
Version: master/v4.0.x

Language: C++

What operating system (Linux, Windows, ...) and version?
Windows 10

What runtime / compiler are you using (e.g., python version or gcc version)
MSVC++ 20

What did you do?
Steps to reproduce the behavior:

  1. complie message class without string type using protoc.exe.
    image

  2. add file ~.pb.h & ~.pb.cc to my project.

  3. tried to compile.

  4. See error.

  5. So I input macro.
    image

  6. But still same.

What did you expect to see

What did you see instead?
image

Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).

Anything else we should know about your project / environment

@acozzette
Copy link
Member

I checked out the v3.17.0 tag and the string is_pod doesn't appear anywhere in the source (except CHANGES.txt). I suspect that you must have an old version of the protobuf runtime lying around that is causing the error.

@PARKGIBAEK
Copy link
Author

PARKGIBAEK commented Mar 9, 2022

I checked out the v3.17.0 tag and the string is_pod doesn't appear anywhere in the source (except CHANGES.txt). I suspect that you must have an old version of the protobuf runtime lying around that is causing the error.

Sorry for this, I tested it only v4.x for this issue.
As I copied and used other issue reports as they were, there was a mistake.

@acozzette
Copy link
Member

No problem!

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