Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Create Templatehell.cpp #29

wants to merge 1 commit into from

Conversation

Zevenberge
Copy link

No description provided.

// What do these lines do?

fun<A, B>(a, b);

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.

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;

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() {

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(); }

};

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 {

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;

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? 🌈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants