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

global variable construct order problem #807

Closed
flymolon opened this issue Jul 12, 2018 · 1 comment
Closed

global variable construct order problem #807

flymolon opened this issue Jul 12, 2018 · 1 comment

Comments

@flymolon
Copy link

flymolon commented Jul 12, 2018

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.

@vitaut
Copy link
Contributor

vitaut commented Jul 18, 2018

Fixed in 6eaa507, thanks for reporting.

@vitaut vitaut closed this as completed Jul 18, 2018
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