From f66b4aafc175411b553363b151661c3d4306b745 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Tue, 13 Jan 2015 11:58:23 -0700 Subject: [PATCH] Fix g++ 4.6 initializers --- include/chaiscript/dispatchkit/proxy_functions.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/chaiscript/dispatchkit/proxy_functions.hpp b/include/chaiscript/dispatchkit/proxy_functions.hpp index 1c7cea2c..8556e130 100644 --- a/include/chaiscript/dispatchkit/proxy_functions.hpp +++ b/include/chaiscript/dispatchkit/proxy_functions.hpp @@ -47,10 +47,14 @@ namespace chaiscript { public: Param_Types() + : m_has_types(false), + m_doti(user_type()) {} Param_Types(std::vector> t_types) : m_types(std::move(t_types)) + : m_has_types(false), + m_doti(user_type()) { update_has_types(); } @@ -123,8 +127,8 @@ namespace chaiscript } std::vector> m_types; - bool m_has_types = false; - Type_Info m_doti = user_type(); + bool m_has_types; + Type_Info m_doti; };