From 8408dc9e4dbb0302d523e893861b60473a33c91e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Thu, 12 Feb 2015 13:03:40 -0800 Subject: use a reinterpret_cast to return the correct type --- include/mbgl/platform/log.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/mbgl') diff --git a/include/mbgl/platform/log.hpp b/include/mbgl/platform/log.hpp index b95895fd10..8b58921bbe 100644 --- a/include/mbgl/platform/log.hpp +++ b/include/mbgl/platform/log.hpp @@ -61,7 +61,7 @@ public: template static inline const T &Set(Args&& ...args) { Backend = util::make_unique(::std::forward(args)...); - return *dynamic_cast(Backend.get()); + return *reinterpret_cast(Backend.get()); } private: -- cgit v1.2.1