summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/phoenix/test/regression/bug6040.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/boost/libs/phoenix/test/regression/bug6040.cpp')
-rw-r--r--src/boost/libs/phoenix/test/regression/bug6040.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/boost/libs/phoenix/test/regression/bug6040.cpp b/src/boost/libs/phoenix/test/regression/bug6040.cpp
new file mode 100644
index 00000000..dce413cb
--- /dev/null
+++ b/src/boost/libs/phoenix/test/regression/bug6040.cpp
@@ -0,0 +1,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) );
+}