r/cpp • • 1d ago

MSVC automatic import std::vector bug

https://developercommunity.visualstudio.com/t/MSVC-C20-modules-expose-std::vector-on/11135469?sort=newest&scope=follow
//math.ixx
module;
#include <vector>
export module math;
//nothing is exported

//main.cpp  Vs2026 18.9.2
import math;
int main()
{
std::vector<char> value = { 'a', 'b', 'c'}; // OK, but why?

return 0;
}
2 Upvotes

6 comments sorted by

View all comments

Show parent comment

6

u/ironykarl 21h ago

So, it'll either get fixed or it won't?