codice:
#include <iostream>
#include <cstdlib>
using namespace std;

template <typename T>
string to_string(const T& x)
{
	std::ostringstream os;
	os << x;
	return os.str();
}

int main()
{
	int n; string c;
	n = 2;
	c = to_string(2);
	cout << c;
	
	exit(1);
}
evellon@ithildin $ g++ -o main main.cpp
main.cpp: In function `std::string to_string(const T&) [with T = int]':
main.cpp:17: instantiated from here
main.cpp:8: error: `os' has incomplete type
main.cpp:8: error: storage size of `os' isn't known


da quanto ho capito mi chiede di specificare la dimensione di os, ma cercando in google non ho trovato degli esempi