From fc6280162886c5d4984beedff8167ffeb83a8178 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sat, 25 Aug 2012 13:07:36 +0200 Subject: [PATCH] Make cons_impl() work with EbmlUnicodeString & std::wstring --- tests/unit/construct.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }