fork download
  1. #include <boost/range/algorithm.hpp>
  2. #include <boost/range/adaptors.hpp>
  3. #include <boost/phoenix.hpp>
  4. #include <vector>
  5.  
  6. using namespace boost::adaptors;
  7. using boost::phoenix::placeholders::arg1;
  8.  
  9. int main(int argc, const char *argv[])
  10. {
  11. using namespace std;
  12. auto out = ostream_iterator<int>(cout, "\n");
  13.  
  14. vector<int> stuff { 1,2,3 };
  15. boost::copy(stuff | transformed(arg1 * 3), out);
  16. }
  17.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:37: fatal error: boost/range/algorithm.hpp: No such file or directory
compilation terminated.
stdout
Standard output is empty