From 0771c1e0841792cdc99fcf6fd1c229b7aa291865 Mon Sep 17 00:00:00 2001 From: Jinhao Date: Mon, 16 Mar 2020 13:15:05 +0800 Subject: [PATCH] fix a compilation error --- include/nana/gui/widgets/categorize.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nana/gui/widgets/categorize.hpp b/include/nana/gui/widgets/categorize.hpp index 7cf90000..99ae3361 100644 --- a/include/nana/gui/widgets/categorize.hpp +++ b/include/nana/gui/widgets/categorize.hpp @@ -1,7 +1,7 @@ /** * A Categorize Implementation * Nana C++ Library(http://www.nanapro.org) - * Copyright(C) 2003-2017 Jinhao(cnjinhao@hotmail.com) + * Copyright(C) 2003-2020 Jinhao(cnjinhao@hotmail.com) * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at @@ -248,7 +248,7 @@ namespace nana /// Retrieves a reference of the current category's value type object. If current category is empty, it throws a exception of std::runtime_error. value_type& value() const { - return this->get_drawer_trigger().value(); + return nana::any_cast(this->get_drawer_trigger().value()); } private: //Overrides widget's virtual functions