Created
February 18, 2014 16:18
-
-
Save DieHertz/9074109 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
#include <iostream> | |
using namespace std; | |
struct Foo { | |
Foo() = default; | |
Foo(const Foo&) { cout << "Foo::Foo(const Foo&)" << endl; } | |
template<class T> Foo(const T&) { cout << "Foo::Foo<T>(const T&)" << endl; } | |
}; | |
int main() { | |
auto f = Foo{}; | |
auto copy_f = f; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment