Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

8
  • To clarify, I'm talking about the case where someone wants to add a new module partition and separate the interface and implementation units of that partition (without drawing from the primary module interface, which I agree works in principle but may not scale well). And I also think that the Visual Studio extension naming maybe is not the most intuitive, but according to Microsoft, "Module unit implementation files don't end with an .ixx extension--they're normal .cpp files."
    – jwick
    Commented Jun 29 at 5:09
  • @jwick: "without drawing from the primary module interface" What does that mean? If it's an interface unit, then it is part of the "primary module interface". "according to Microsoft" That tutorial doesn't talk about implementation partitions, just interface partitions. Commented Jun 29 at 19:34
  • Yes, I understand that interface units are all technically part of the primary module interface. I'm talking about when you want to add new interface/implementation files for a new partition that you're working on - is that not a common scenario? Forcing multiple collaborators to work in the same primary module interface can get organizationally messy, isn't forestalling that one of the main benefits of module partitions?
    – jwick
    Commented Jun 29 at 23:42
  • From that tutorial: "The naming convention for the module partition's implementation file follows the naming convention for a partition. But it has a .cpp extension because it's an implementation file."
    – jwick
    Commented Jun 30 at 4:39
  • @jwick: I can't help what the tutorial says. All I can tell you is what the actual MSVC documentation says. And it says that implementation partition units need to use the .ixx extension or the given compile option. Commented Jun 30 at 16:04