$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [Preprocessor] Generate #include directive with preprocessor
From: TONGARI (tongari95_at_[hidden])
Date: 2013-02-13 10:01:56
2013/2/13 Adam Badura <abadura_at_[hidden]>
> Is it possible to use preprocessor to generate #include directives (or in
> any other way include the files)?
>
> For example if I would have a sequence of strings (being file paths) what
> to do to include all those files? It is possible at all?
>
I guess, if it's possible, it may look like:
#define INCLUDE_FILES(prefix, (f1)(f2)..., postfix)
#include <include_files.hpp>
where include_files.hpp may use some trick like file-loop...
I may be wrong :p