Templated Leater Seamed, как простой выбор, так как все уже расположено в заголовке. Блог.
Код: Выделить всё
#pragma once
#include
namespace some_ns
{
template
class TemplateHeader
{
public:
explicit TemplateHeader(const String_T& str);
void print() const;
private:
const String_T m_str;
};
template
TemplateHeader::TemplateHeader(const String_T& str):
m_str(str)
{
}
template
void TemplateHeader::print() const
{
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/77376787/c-how-to-move-templated-headers-into-cxx-modules[/url]
Мобильная версия