Fixed #2227
This commit is contained in:
		@@ -192,7 +192,7 @@ void binary_example()
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// Log a vector of numbers
 | 
					// Log a vector of numbers
 | 
				
			||||||
#ifndef SPDLOG_USE_STD_FORMAT
 | 
					#ifndef SPDLOG_USE_STD_FORMAT
 | 
				
			||||||
#    include "spdlog/fmt/bundled/ranges.h"
 | 
					#    include "spdlog/fmt/ranges.h"
 | 
				
			||||||
void vector_example()
 | 
					void vector_example()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    std::vector<int> vec = {1, 2, 3};
 | 
					    std::vector<int> vec = {1, 2, 3};
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										22
									
								
								include/spdlog/fmt/ranges.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								include/spdlog/fmt/ranges.h
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,22 @@
 | 
				
			|||||||
 | 
					//
 | 
				
			||||||
 | 
					// Copyright(c) 2016 Gabi Melman.
 | 
				
			||||||
 | 
					// Distributed under the MIT License (http://opensource.org/licenses/MIT)
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#pragma once
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					// include bundled or external copy of fmtlib's ranges support
 | 
				
			||||||
 | 
					//
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if !defined(SPDLOG_USE_STD_FORMAT)
 | 
				
			||||||
 | 
					#    if !defined(SPDLOG_FMT_EXTERNAL)
 | 
				
			||||||
 | 
					#        ifdef SPDLOG_HEADER_ONLY
 | 
				
			||||||
 | 
					#            ifndef FMT_HEADER_ONLY
 | 
				
			||||||
 | 
					#                define FMT_HEADER_ONLY
 | 
				
			||||||
 | 
					#            endif
 | 
				
			||||||
 | 
					#        endif
 | 
				
			||||||
 | 
					#        include <spdlog/fmt/bundled/ranges.h>
 | 
				
			||||||
 | 
					#    else
 | 
				
			||||||
 | 
					#        include <fmt/ranges.h>
 | 
				
			||||||
 | 
					#    endif
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
		Reference in New Issue
	
	Block a user