From 1f1656a6c2bc9b2301617d56e1a27aaad8a397e6 Mon Sep 17 00:00:00 2001 From: Windoze Date: Wed, 27 Feb 2013 13:33:27 +0800 Subject: [PATCH] C++11 needs constexpr constructor when object used in constexpr expression --- include/chaiscript/dispatchkit/type_info.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/chaiscript/dispatchkit/type_info.hpp b/include/chaiscript/dispatchkit/type_info.hpp index ea4571f..466f474 100644 --- a/include/chaiscript/dispatchkit/type_info.hpp +++ b/include/chaiscript/dispatchkit/type_info.hpp @@ -28,7 +28,7 @@ namespace chaiscript class Type_Info { public: - Type_Info(bool t_is_const, bool t_is_reference, bool t_is_pointer, bool t_is_void, + constexpr Type_Info(bool t_is_const, bool t_is_reference, bool t_is_pointer, bool t_is_void, bool t_is_arithmetic, const std::type_info *t_ti, const std::type_info *t_bareti) : m_type_info(t_ti), m_bare_type_info(t_bareti), m_is_const(t_is_const), m_is_reference(t_is_reference), m_is_pointer(t_is_pointer),