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