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