From 7bdf8a9f6b72277499eb340b19ee9af210356ece Mon Sep 17 00:00:00 2001 From: cnjinhao Date: Fri, 12 Dec 2014 01:44:07 +0800 Subject: [PATCH] hotfixes for 0.9 A workaround for VC2013 that matches incorrectly constructor by {} --- include/nana/gui/widgets/textbox.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/nana/gui/widgets/textbox.hpp b/include/nana/gui/widgets/textbox.hpp index 8bebeb76..11528b35 100644 --- a/include/nana/gui/widgets/textbox.hpp +++ b/include/nana/gui/widgets/textbox.hpp @@ -129,7 +129,9 @@ namespace nana void load(nana::string file); void store(nana::string file); void store(nana::string file, nana::unicode encoding); - textbox& reset(nana::string = {}); ///< discard the old text and set a newtext + + //A workaround for reset, explicit default constructor syntax, because VC2013 incorrectly treats {} as {0}. + textbox& reset(nana::string = nana::string()); ///< discard the old text and set a newtext /// The file of last store operation. nana::string filename() const;