Is Boost.Preprocessor self-contained? -


i'm thinking using boost.preprocessor in project, don't want make entire boost library dependency.

can copy alone , away this? otherwise, dependencies?

new answer

i got bcp working:

./bcp --list preprocessor --boost=/usr/local/include/boost_1_45_0/ | grep -v preprocessor

no errors detected

w/o grep like:

boost/preprocessor.hpp
boost/preprocessor/arithmetic.hpp
boost/preprocessor/arithmetic/add.hpp
boost/preprocessor/arithmetic/dec.hpp
boost/preprocessor/arithmetic/detail/div_base.hpp
boost/preprocessor/arithmetic/div.hpp
boost/preprocessor/arithmetic/inc.hpp
boost/preprocessor/arithmetic/mod.hpp
boost/preprocessor/arithmetic/mul.hpp
boost/preprocessor/arithmetic/sub.hpp


original answer

try using boost bcp utility copy it

i did quick grep -r "include" /usr/include/boost/preprocessor/* | grep -v preprocessor , didn't come matches. have sworn config needed.

edit (my grep-ful weak =/) grep -rh "include" /usr/include/boost/preprocessor/* | grep -v preprocessor | sort |uniq

# error boost_pp_error: no indirect file include
# include boost_pp_filename_1
# include boost_pp_filename_1
# include boost_pp_filename_2
# include boost_pp_filename_2
# include boost_pp_filename_3
# include boost_pp_filename_3
# include boost_pp_filename_4
# include boost_pp_filename_4
# include boost_pp_filename_5
# include boost_pp_filename_5
# include boost_pp_indirect_self

grep -rhe "define\\s+boost_pp_filename" /usr/include/boost/preprocessor/* | sort |uniq

# define boost_pp_filename_1 boost_pp_array_elem(2, boost_pp_iteration_params_1)
# define boost_pp_filename_2 boost_pp_array_elem(2, boost_pp_iteration_params_2)
# define boost_pp_filename_3 boost_pp_array_elem(2, boost_pp_iteration_params_3)
# define boost_pp_filename_4 boost_pp_array_elem(2, boost_pp_iteration_params_4)
# define boost_pp_filename_5 boost_pp_array_elem(2, boost_pp_iteration_params_5)

boost_pp_iteration_params_# don't seem #defined anywhere. strangely enough, #undefed in ./detail/iter/forward#.hpp i'm missing nested macro or other...


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -