]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/algorithm/test/hex_fail1.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / 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
13 #include <string>
14 #include <iostream>
15 #include <vector>
16
17 // should not compile: vector is not an integral type
18 int main( int , char* [] )
19 {
20 std::vector<float> v;
21 std::string out;
22 boost::algorithm::unhex ( out, std::back_inserter(v));
23
24 return 0;
25 }