heres my type variable:
Code:
//creating the any typestruct any {
    std::stringstream text;//here is an error.. sometimes:(


    template<typename T>
    any(const T& value) {
        text << value;
    }


    friend std::ostream& operator << (std::ostream& os, const any& value) {
        os << value.text.str();
        return os;
    }
};
can you adivice me if that line is portable?

and heres my new function:

Code:
//create the Write function for test;)void Write(any var1, any var2) 
{		
	std::cout << var1 << var2;    	
}
my question is: can i give NULL values to that arguments(var2 and nexts)?
(i'm thinking in something more cool than 3 declarations for get the 3 parameter)