#include "structures.h" void foo() { std::string a = "Mozilla"; std::string tmp; tmp.assign(a.c_str()); }