#include <iostream>
#include <functional>
using namespace std;

void run(std::function<std::string(const int&)> func)
{
	std::cout << "in run" << std::endl;
}

int main()
{
	auto get_functor = [&](const bool check)
	{
    	return  [&](const int& sr)->std::string
    	{
        	if(check)
        	{
            	return "some string";
        	}
        	return "another string";
    	};
	};
	run(get_functor(true));
	return 0;
}