std::wstring test =boost::to_iso_extended_wstring(d);

 

std::string test = boost::to_iso_extended_string(d);

std::wstring wtest(test.begin(), test.end());