#include <iostream>
using namespace std;

struct some_type {};

void doSomething(some_type& model)
{
	cout << "reference: " << &model << endl;
}

void test(some_type input_model, bool do_copy)
{
	cout << "original: " << &input_model << endl;
	if (do_copy)
	{
		 some_type copy_model = input_model;
		 doSomething(copy_model);
	}
	else
		doSomething(input_model);
}

int main()
{
	test({}, true);
	test({}, false);
	return 0;
}