Skip to content

Please use std::aligned_storage since C++11 for static JSON null  #184

Closed
@tymonx

Description

@tymonx

This should be replaced with std::aligned_storage to be more portable between compilers and avoid 'clumsy' workaround:
https://github.com/open-source-parsers/jsoncpp/blob/master/src/lib_json/json_value.cpp#L36

In my own JSON implementation I use it like this:
https://github.com/tymonx/OpenRedfish/blob/dev/json/json.cpp#L52

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions