mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-18 04:29:18 +02:00
A template defined in a module interface is instantiated in the importing unit, where its body's types must be complete. A declaration reaching the importer only through the interface's global module fragment is not enough for MSVC: cParser::operator>> uses std::stringstream, and every unit that parsed a float got an incomplete type. 526 headers across 161 units, derived from what each interface's template bodies actually name.
18 lines
434 B
C++
18 lines
434 B
C++
module;
|
|
#include <ostream>
|
|
#include <string>
|
|
#include "utilities/Globals_macros.h"
|
|
|
|
module eu07.environment.stars;
|
|
import eu07.utilities.globals;
|
|
import eu07.model.mdlmngr;
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////
|
|
// cStars -- simple starfield model, simulating appearance of starry sky
|
|
|
|
void
|
|
cStars::init() {
|
|
|
|
m_stars = TModelsManager::GetModel( "skydome_stars.t3d", false );
|
|
}
|