mirror of
				https://github.com/ohwgiles/laminar.git
				synced 2025-06-13 12:54:29 +00:00 
			
		
		
		
	log.h: null-terminate compile-time filename strings
This commit is contained in:
		
							parent
							
								
									21ea5363a9
								
							
						
					
					
						commit
						448d8cfa48
					
				| @ -38,7 +38,7 @@ namespace _ { | ||||
| 	} | ||||
| 	template<int N, int...I> | ||||
| 	static constexpr decltype(auto) static_alloc_str_impl(const char* str, std::integer_sequence<int, I...>) {  | ||||
| 		return (struct {char buf[N];}) {str[I]...}; | ||||
| 		return (struct {char buf[N+1];}) {str[I]..., 0}; | ||||
| 	} | ||||
| 	template<int N> | ||||
| 	static constexpr decltype(auto) static_alloc_str(const char* str) { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user