#include <iostream>
#include <string>

void fun1( const std::string& strParm )
{
	std::cout << "In [void fun1( const std::string& strParm )] :: " << strParm << std::endl;
}


void fun2( std::string& strParm )
{
	std::cout << "In [void fun2( std::string& strParm )] :: " << strParm << std::endl;
}

int main() 
{
	std::string strValue1 = "Hello ";
	std::string strValue2 = "World!!!";
	
	fun1( strValue1 + strValue2 );	// Ok
	fun2( strValue1 );				// Ok
	fun2( strValue1 + strValue2 );	// Compilation error
	return 0;
}