
On 06/20/10 20:54, Steven Watanabe wrote:
// a.hpp #ifndef BOOST_PP_IS_ITERATING #include
#define BOOST_PP_FILENAME_1 "a_impl.hpp" #define BOOST_PP_ITERATION_LIMITS (1, 10) #include BOOST_PP_ITERATE() #else // ... #endif
Macro expansion is not allowed so such a construct would not work. Macros are not allowed in the #include directives.
Ok you can ban the technique in your libraries, but what happens if you use third-party libraries that do use the technique? Like Boost, for example.

On 06/21/10 23:37, Pete Bartlett wrote:
Macro expansion is not allowed so such a construct would not work. Macros are not allowed in the #include directives. Ok you can ban the technique in your libraries, but what happens if you use third-party libraries that do use the technique? Like Boost, for example.
I didn't want to use Boost.Wave to parse C++ header files at all. It's a customizable library that can do a variety of jobs.
participants (2)
-
anony
-
Pete Bartlett