bug6040.cpp 747 B

12345678910111213141516171819202122
  1. /*==============================================================================
  2. Copyright (c) 2005-2010 Joel de Guzman
  3. Copyright (c) 2010 Thomas Heller
  4. Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. ==============================================================================*/
  7. #include <boost/phoenix.hpp>
  8. #include <vector>
  9. #include <algorithm>
  10. #include <sstream>
  11. int main()
  12. {
  13. std::vector<unsigned char> data;
  14. using boost::phoenix::arg_names::_1;
  15. using boost::phoenix::static_cast_;
  16. std::ostringstream oss;
  17. oss << std::hex;
  18. std::for_each(data.begin(),data.end(), static_cast_<unsigned int>(_1) );
  19. }