mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-18 18:29:40 +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.
34 lines
495 B
C++
34 lines
495 B
C++
module;
|
|
#include <deque>
|
|
#include <unordered_map>
|
|
#include "utilities/translation_macros.h"
|
|
|
|
export module eu07.widgets.time;
|
|
import eu07.application.uilayer;
|
|
import eu07.utilities.translation;
|
|
import eu07.input.command;
|
|
|
|
export {
|
|
|
|
namespace ui
|
|
{
|
|
class time_panel : public ui_panel
|
|
{
|
|
command_relay m_relay;
|
|
|
|
float time;
|
|
int yearday;
|
|
float fog;
|
|
float overcast;
|
|
float temperature;
|
|
|
|
public:
|
|
time_panel();
|
|
|
|
void render_contents() override;
|
|
void open();
|
|
};
|
|
} // namespace ui
|
|
|
|
} // export
|