fork(3) download
  1. template <typename T>
  2. struct Identity
  3. {
  4. typedef T type;
  5. };
  6.  
  7. template <typename T> void assign(T *a, typename Identity<T>::type b) { *a = b; }
  8.  
  9. int main() {
  10. float i;
  11. assign(&i, 2);
  12. }
Success #stdin #stdout 0s 2848KB
stdin
Standard input is empty
stdout
Standard output is empty