On 7/23/2015 7:15 AM, Andrei Alexandrescu wrote:
I am a bit puzzled by the notion of shipping template code that has never been instantiated as being a positive thing. This has also turned up in the C++ static_if discussions.This is easy to understand. Weeding out uncovered code during compilation is a central feature of C++ concepts. Admitting you actually never want to do that would be a major blow.
But if a unit test fails at instantiating it, it fails at compile time.