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
14int 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(first: data.begin(),last: data.end(), f: static_cast_<unsigned int>(u: _1) );
22}
23

source code of boost/libs/phoenix/test/regression/bug6040.cpp