This circuit was found in Siliconix documentation from the 1980s. Common comparators or operational ones can be used. Transistors are commonly used.