fork download
  1. #include <boost/preprocessor.hpp>
  2. #include <iostream>
  3.  
  4. #define COMBINE(index, data, elem) BOOST_PP_STRINGIZE(elem) "."
  5. #define JOIN(args) BOOST_PP_SEQ_FOR_EACH(COMBINE, ".", args)
  6.  
  7.  
  8. int main()
  9. {
  10. std::cout << BOOST_PP_STRINGIZE( JOIN((a)(b)(c)) ) << std::endl;
  11. }
Success #stdin #stdout 0.01s 2680KB
stdin
Standard input is empty
stdout
"a" "." "b" "." "c" "."