Skip to content

global variable construct order problem #807

Closed
@flymolon

Description

@flymolon

when using vs2015, by declaring a global variable static const std::string globalv = fmt::format("{}", "a");,
the globalv constructs before the dependent variable
template <typename Context, typename ...Args> const long long format_arg_store<Context, Args...>::TYPES = get_types(); and thus the globalv cannot construct correctly.

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