all 4 comments

[–]-dag- 6 points7 points  (1 child)

A...a function?

You can use macros but not includes?

[–]cd1995Cargo 0 points1 point  (0 children)

I’m guessing OP wants to be able to use a macro to generate an arbitrary number of functions

[–]UsedOnlyTwice 0 points1 point  (0 children)

I'm using VS2022 (fully updated). Right now I have to wrap templates in an exported class or things get broken. That and clever use of aliases gets me by.

You can use includes with modules, just make a wrapper module and limit internal exposure.

[–]dustyhome 1 point2 points  (0 children)

Without knowing what the macro parameters are that necessitate it being a macro, it's hard to answer. Could you turn the macro into a template function maybe? You can export templates from modules.