Make cons_impl() work with EbmlUnicodeString & std::wstring

This commit is contained in:
Moritz Bunkus 2012-08-25 13:07:36 +02:00
parent 78fa9e04cf
commit fc62801628

View File

@ -88,7 +88,7 @@ typename boost::enable_if< std::is_base_of<EbmlUnicodeString, Tobject> >::type
cons_impl(EbmlMaster *master, cons_impl(EbmlMaster *master,
Tobject *object, Tobject *object,
Tvalue const &value) { Tvalue const &value) {
*static_cast<EbmlUnicodeString *>(object) = value; *static_cast<EbmlUnicodeString *>(object) = std::wstring{value}.c_str();
master->PushElement(*object); master->PushElement(*object);
} }