Skip to content

Instantly share code, notes, and snippets.

@DieHertz
Created February 18, 2014 16:18
Show Gist options
  • Save DieHertz/9074109 to your computer and use it in GitHub Desktop.
Save DieHertz/9074109 to your computer and use it in GitHub Desktop.
#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