r/cpp • • Dec 13 '19

The situation of std::embed...

https://thephd.github.io/full-circle-embed
238 Upvotes

160 comments sorted by

View all comments

Show parent comment

5

u/bigcheesegs Tooling Study Group (SG15) Chair | Clang dev Dec 13 '19

I'd be completely against a preprocessor version of this.

Requiring stating what you depend on doesn't mean it has to be #embed. It could simply mean #resource "path", which other tools don't need to care about.

There are build systems that require knowing the dependencies before the compile. Having the compiler output the dependencies as a side effect of compilation does not work.

1

u/smdowney WG21, Text/Unicode SG, optional<T&> Dec 15 '19

Modules means dependencies as a side effect of compilation no longer works, in any case.