#include <iostream>
using namespace std;

struct Sample
{
	Sample(int a, int b): a(a), b(b)
	{
	}
	
	void bar() const
	{
		cout << a << ", " << b << endl;
	}
	
	int a, b;
};

void foo(const Sample& s)
{
	s.bar();
}

int main() {
	
	foo(Sample{1, 2});
	foo(Sample(1, 2));
	
	return 0;
}