Schlangenmensch, German
@Schlangenmensch@mastodon.social avatar

Does anybody know when it will be possible to mix #c++ #std named #modules and classic #includes with #msvc?
#cpp #cpp20 #cpp23

gracicot, (edited )
@gracicot@mastodon.social avatar

@Schlangenmensch from what I understood, you can include then import, but not the other way around. Minus bugs of course

Schlangenmensch,
@Schlangenmensch@mastodon.social avatar

@gracicot I can't get it to work. I have a source file including iostream and importing a module. The module imports Std and uses some stl stuff, e.g. a unique_ptr. And voila, I get redifinition errors in <memory>.

Without the include of <iostream> everything works as expected. And it doesn't matter If include or import comes first.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • cpp
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines