Skip to content

Instantly share code, notes, and snippets.

@EricWF
Last active August 29, 2015 13:57
Show Gist options
  • Save EricWF/9887012 to your computer and use it in GitHub Desktop.
Save EricWF/9887012 to your computer and use it in GitHub Desktop.
any & operator=(any const & rhs)
{
any(rhs).swap(*this);
return *this;
}
1. implicit conversion
2. explicit conversion
3. stream operator
4. to_string
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