-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create Templatehell.cpp #29
base: master
Are you sure you want to change the base?
Conversation
// What do these lines do? | ||
|
||
fun<A, B>(a, b); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, just checking in. Wondering why this is here...? 🌈🐼
@@ -0,0 +1,73 @@ | |||
// Totally evil example of why C++ template syntax and free-for-all operator | |||
|
|||
// overloading is a Bad, Bad Idea. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, just checking in. Meeps... this looks strange...
|
||
int main() { | ||
|
||
A a; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hrmmm... Wondering why this is here...? 🌈🐼
|
||
} | ||
|
||
int main() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi...🦄 So I read your PR... Meeps... this looks strange...
Evil operator,(D d) { return Evil(); } | ||
|
||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hrmmm... Woah... this old bit again... 🦄
|
||
struct B { }; | ||
|
||
struct A { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, just checking in. Meeps Meeps... this looks weird...
|
||
void operator()(A a, B b) { | ||
|
||
std::cout << "Good idea, data saved." << std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit... but... Something looks weird here. Are you sure about this? 🌈
No description provided.