Imported Upstream version 1.51.0
[platform/upstream/boost.git] / libs / algorithm / test / hex_fail1.cpp
1 /* 
2    Copyright (c) Marshall Clow 2011-2012.
3
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     For more information, see http://www.boost.org
8 */
9
10 #include <boost/config.hpp>
11 #include <boost/algorithm/hex.hpp>
12 #include <boost/test/included/test_exec_monitor.hpp>
13
14 #include <string>
15 #include <iostream>
16 #include <vector>
17
18 //  should not compile: vector is not an integral type
19 int test_main( int , char* [] )
20 {
21   std::vector<float> v;
22   std::string out;
23   boost::algorithm::unhex ( out, std::back_inserter(v));
24   return 0;
25 }