fork download
  1. #include <iostream>
  2.  
  3. template<typename TASK>
  4. struct return_type {
  5. typedef TASK type;
  6. };
  7.  
  8.  
  9.  
  10. int main() {
  11. return_type<int>::type x{68};
  12.  
  13. static_assert(std::is_same<decltype(x),int>::value,":(");
  14.  
  15. printf("%d\n",x);
  16. return 0;
  17. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
68