Add hex/unhex algorithms suggested by Olaf

[SVN r77138]
This commit is contained in:
Marshall Clow
2012-02-28 23:17:52 +00:00
parent 49668cf66a
commit 1af25699b7
6 changed files with 722 additions and 0 deletions

25
test/hex_fail1.cpp Normal file
View File

@ -0,0 +1,25 @@
/*
Copyright (c) Marshall Clow 2011-2012.
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)
For more information, see http://www.boost.org
*/
#include <boost/config.hpp>
#include <boost/algorithm/hex.hpp>
#include <boost/test/included/test_exec_monitor.hpp>
#include <string>
#include <iostream>
#include <vector>
// should not compile: vector is not an integral type
int test_main( int , char* [] )
{
std::vector<float> v;
std::string out;
boost::algorithm::unhex ( out, std::back_inserter(v));
return 0;
}