r/cpp • • 19h 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;
}
1 Upvotes

6 comments sorted by

View all comments

4

u/fortsnek274 13h ago

Well, it'd probably get fixed. Unless it gets deprioritised.

6

u/ironykarl 12h ago

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