Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define SLASH(x,y) x y
- #define OUT SLASH(/,/)
- int main(int argc, char *argv[])
- {
- OUT << "text";
- return 0;
- }
- {
- // << "text";
- return 0;
- }
- #define SLASH(x) /x
- #define OUT SLASH(/)
- int main(int argc, char *argv[])
- {
- / / << "text";
- return 0;
- }
- static class NullOutput {
- public:
- template <typename T>
- const NullOutput &operator<<(T arg) const {
- return *this;
- }
- } NullOutputObj;
- #define OUT NullOutputObj
- #define SLASH(x,y) x##y
- #define OUT SLASH(/,/)
Add Comment
Please, Sign In to add comment