#include <iostream>
#include "xstring.h"

xstring& ident1(xstring &str) {
	return str;
}

xstring ident2(const xstring &str) {
	return str;
}

int main() {
	std::cout << "-- Welcome to xstring ultimate example! --------------\n\n";

	xstring str("My string!");

	std::cout << "\n-- Experiment #1 ------------------------------------\n\n";
	xstring newstr1 = ident1(str);

	std::cout << "\n-- Experiment #2 ------------------------------------\n\n";
	xstring newstr2 = ident2("Hello, implicit type conversion :)");

	std::cout << "\n-- ~ The End ~ ---------------------------------------\n\n";

	return 0;
}
