Last active
August 29, 2015 13:57
-
-
Save EricWF/9887012 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
any & operator=(any const & rhs) | |
{ | |
any(rhs).swap(*this); | |
return *this; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. implicit conversion | |
2. explicit conversion | |
3. stream operator | |
4. to_string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template <class = void> | |
struct A | |
{ | |
void foo() | |
{ | |
this->aeoauoeuaoaoesc54210672075636; | |
} | |
}; | |
int main() | |
{ | |
A<> a; | |
((void)a); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment