#include <iostream>
using namespace std;

struct A
{
	static std::initializer_list<int> a()
	{
		return { 1, 2, 3 };
	}
};

struct B
{
	B( std::initializer_list<int> b )
	{
		for( auto&& x : b ) cout << x << "\n";
	}
};

int main() {
	
	auto sth = A::a();
	B b{ sth };
	B c{ 4, 5, 6};
	
	return 0;
}