fork download
  1. #include <iostream>
  2.  
  3.  
  4. class MessageData
  5. {
  6. public:
  7. template <typename T>
  8. T get()
  9. {
  10. return (T)("YOBA");
  11. }
  12. };
  13.  
  14. int main() {
  15. // your code goes here
  16. MessageData md;
  17. std::cout << md.get<char *>();
  18. return 0;
  19. }
Success #stdin #stdout 0s 3096KB
stdin
Standard input is empty
stdout
YOBA