 
            
            
            
            
                16 Jul
                
                    2015
                
            
            
                16 Jul
                
                '15
                
            
            
            
        
    
                10:29 p.m.
            
        On 16/07/15 12:12, Peter Dimov wrote:
Mathias Gaunard wrote:
A core foundational library should not instantiate templates that it doesn't strictly need to. Instantiating templates has a very high impact on compile-time memory usage, performance, ...
That's not always true in C++11/17. One example is the and<T...> primitive, for which the short-circuit version is much slower than the one that always expands T::value...
That would depend on the cost of instantiating T, which you cannot predict since it is a user-defined type.