diff --git a/tests/unit/construct.h b/tests/unit/construct.h index 379c34254..d5c9c452a 100644 --- a/tests/unit/construct.h +++ b/tests/unit/construct.h @@ -88,7 +88,7 @@ typename boost::enable_if< std::is_base_of >::type cons_impl(EbmlMaster *master, Tobject *object, Tvalue const &value) { - *static_cast(object) = value; + *static_cast(object) = std::wstring{value}.c_str(); master->PushElement(*object); }