Guest User

Untitled

a guest
Jul 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #define SLASH(x,y) x y
  2. #define OUT SLASH(/,/)
  3.  
  4. int main(int argc, char *argv[])
  5. {
  6. OUT << "text";
  7. return 0;
  8. }
  9.  
  10. {
  11. // << "text";
  12. return 0;
  13. }
  14.  
  15. #define SLASH(x) /x
  16. #define OUT SLASH(/)
  17.  
  18. int main(int argc, char *argv[])
  19. {
  20. / / << "text";
  21. return 0;
  22. }
  23.  
  24. static class NullOutput {
  25. public:
  26. template <typename T>
  27. const NullOutput &operator<<(T arg) const {
  28. return *this;
  29. }
  30. } NullOutputObj;
  31.  
  32. #define OUT NullOutputObj
  33.  
  34. #define SLASH(x,y) x##y
  35. #define OUT SLASH(/,/)
Add Comment
Please, Sign In to add comment