From 93bbdb4a880fb8e9ba577b0f5e8dab4e8a1e704b Mon Sep 17 00:00:00 2001 From: Jinhao Date: Fri, 31 Aug 2018 01:21:45 +0800 Subject: [PATCH] fix bug that a linkage error caused by VC2017v15.8 --- include/nana/gui/drawing.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/nana/gui/drawing.hpp b/include/nana/gui/drawing.hpp index 06ecece6..d7f7c7be 100644 --- a/include/nana/gui/drawing.hpp +++ b/include/nana/gui/drawing.hpp @@ -23,9 +23,10 @@ namespace nana class drawing :private nana::noncopyable { + struct draw_fn_handle; public: - typedef struct{}* diehard_t; ///< A handle to a drawing method - typedef std::function draw_fn_t; ///< A function to draw + using diehard_t = draw_fn_handle * ; ///< A handle to a drawing method + using draw_fn_t = std::function; ///< A function to draw drawing(window w); ///< Create a drawing object for a widget w