summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/phoenix/test/regression/bug6040.cpp
blob: dce413cb786ccca55bf7cb309cc4a47dd4876a42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*==============================================================================
    Copyright (c) 2005-2010 Joel de Guzman
    Copyright (c) 2010 Thomas Heller

    Distributed under the Boost Software License, Version 1.0. (See accompanying
    file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/

#include <boost/phoenix.hpp>
#include <vector>
#include <algorithm>
#include <sstream>
 
int main()
{
    std::vector<unsigned char> data;
    using boost::phoenix::arg_names::_1;
    using boost::phoenix::static_cast_;
    std::ostringstream oss;
    oss << std::hex;
    std::for_each(data.begin(),data.end(), static_cast_<unsigned int>(_1) );
}