mirror of
				https://github.com/davidgiven/fluxengine.git
				synced 2025-10-24 11:11:02 -07:00 
			
		
		
		
	Try making the error collector non-constexpr?
This commit is contained in:
		| @@ -93,7 +93,7 @@ namespace grammar | |||||||
|     }; |     }; | ||||||
| }; | }; | ||||||
|  |  | ||||||
| struct _error_collector | struct error_collector | ||||||
| { | { | ||||||
|     struct _sink |     struct _sink | ||||||
|     { |     { | ||||||
| @@ -128,17 +128,16 @@ struct _error_collector | |||||||
|         } |         } | ||||||
|     }; |     }; | ||||||
|  |  | ||||||
|     constexpr auto sink() const |     auto sink() const | ||||||
|     { |     { | ||||||
|         return _sink{}; |         return _sink{}; | ||||||
|     } |     } | ||||||
| }; | }; | ||||||
| constexpr auto error_collector = _error_collector(); |  | ||||||
|  |  | ||||||
| std::vector<CylinderHead> parseCylinderHeadsString(const std::string& s) | std::vector<CylinderHead> parseCylinderHeadsString(const std::string& s) | ||||||
| { | { | ||||||
|     auto input = lexy::string_input(s); |     auto input = lexy::string_input(s); | ||||||
|     auto result = lexy::parse<grammar::chs>(input, error_collector); |     auto result = lexy::parse<grammar::chs>(input, error_collector()); | ||||||
|     if (result.is_error()) |     if (result.is_error()) | ||||||
|     { |     { | ||||||
|         error(fmt::format("track descriptor parse error: {}", |         error(fmt::format("track descriptor parse error: {}", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user