fork download
  1. template < typename T >
  2. struct Delta {
  3. typedef decltype( T() - T() ) Value;
  4. };
  5.  
  6. template <typename T,
  7. typename DT = typename Delta<T>::Value >
  8. class A { };
  9.  
  10.  
  11. int main()
  12. {
  13. A<int> a;
  14. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty