Экспорт не классовой функции не удается < /p>
error C7619: cannot export 'nonClassFunc1' as module partition 'Internal'
does not contribute to the exported interface of module unit 'ModTest'
< /code>
firstfile.cpp
export module ModTest:One;
export class FirstClass {
public:
FirstClass();
int firstClassFunc();
};
export int nonClassFunc1(); // does not compile
export int nonClassFunc2(){ return 9; } // compiles
< /code>
firstfile_impl.cpp
module ModTest:Internal; // C7619
< /code>
Обе версии некласфункции не доступны для использования после импорта.
Что здесь не так?
Спасибо!>
Подробнее здесь: https://stackoverflow.com/questions/796 ... a-c-module