| 
									
										
										
										
											2012-04-16 18:54:41 +00:00
										 |  |  | /* 
 | 
					
						
							|  |  |  |    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 <string>
 | 
					
						
							|  |  |  | #include <iostream>
 | 
					
						
							|  |  |  | #include <vector>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-27 15:45:18 +00:00
										 |  |  | //  should not compile: vector is not an integral type
 | 
					
						
							| 
									
										
										
										
											2013-02-25 18:43:26 +00:00
										 |  |  | int main( int , char* [] ) | 
					
						
							| 
									
										
										
										
											2012-04-16 18:54:41 +00:00
										 |  |  | { | 
					
						
							|  |  |  |   std::vector<float> v; | 
					
						
							|  |  |  |   std::string out; | 
					
						
							|  |  |  |   boost::algorithm::unhex ( out, std::back_inserter(v)); | 
					
						
							| 
									
										
										
										
											2013-02-25 18:43:26 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-04-16 18:54:41 +00:00
										 |  |  |   return 0; | 
					
						
							|  |  |  | } |