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
18int main( int , char* [] )
19{
20 std::vector<float> v;
21 std::string out;
22 boost::algorithm::unhex ( r: out, out: std::back_inserter(x&: v));
23
24 return 0;
25}
26

source code of boost/libs/algorithm/test/hex_fail1.cpp