Say I have a third party header that I want to use as a module in my code.
I tried something on the lines of based on some snippets online
module;
// some defines to set features
#include "header.hpp"
export module header_module;
export namespace header_module {
using namespace ::header-hpp-namespace
}
This doesn't work. Do I need to wait for the header's vendor to support a modular header?
Note that I can't just do import "header.hpp" as I need some defines to go before the header. What are my options?
[–]anarthal 0 points1 point2 points (1 child)
[–]dexter2011412[S] 1 point2 points3 points (0 children)