using regex at compile time errors out! Error: static variable `thompsonFactory` cannot be read at compile time

Brett Brett at gmail.com
Thu Oct 3 23:47:17 UTC 2019


		auto r = replaceAll!((C)
				{
					return "X";
				}
				)(s, regex(`Y`));

Error: static variable `thompsonFactory` cannot be read at 
compile time

This is when the result is tried to be determined at compile 
time, e.g., assigning it to an enum even though s is known at 
compile time.


More information about the Digitalmars-d-learn mailing list