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

A C2028 error may be generated when using the c++ 20 module. #58

Closed
wzhengsen opened this issue Nov 21, 2022 · 0 comments
Closed

A C2028 error may be generated when using the c++ 20 module. #58

wzhengsen opened this issue Nov 21, 2022 · 0 comments

Comments

@wzhengsen
Copy link

OS: Windows 10
IDE: vs 2022 17.3.6

ixx:

module;
#include "tsl/robin_map.h"
export module Test;
export namespace Test {
    inline tsl::robin_map<int, int> m = {};
}

cpp:

module Test;
namespace Test{
void Test1(){
    // tsl\robin_hash.h(385,25): error C2028
    auto sz = m.size();
}
}
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

1 participant