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 initialization with Visual Studio #4878

Merged
merged 1 commit into from
Jul 9, 2018

Commits on Jul 6, 2018

  1. Fix initialization with Visual Studio

    It appears that Visual Studio does not work well with std::once_flag
    because it has a bug causing it to initialize that during dynamic
    initialization instead of constant initialization. This change works
    around the problem by using function static initializers instead.
    
    @gerben-s originally wrote this change for the Google-internal codebase
    but I am just cherry-picking it here.
    
    This fixes protocolbuffers#4773.
    acozzette committed Jul 6, 2018
    Configuration menu
    Copy the full SHA
    a9abc78 View commit details
    Browse the repository at this point in the history