hex_fail1.cpp 576 B

12345678910111213141516171819202122232425
  1. /*
  2. Copyright (c) Marshall Clow 2011-2012.
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. For more information, see http://www.boost.org
  6. */
  7. #include <boost/config.hpp>
  8. #include <boost/algorithm/hex.hpp>
  9. #include <string>
  10. #include <iostream>
  11. #include <vector>
  12. // should not compile: vector is not an integral type
  13. int main( int , char* [] )
  14. {
  15. std::vector<float> v;
  16. std::string out;
  17. boost::algorithm::unhex ( out, std::back_inserter(v));
  18. return 0;
  19. }