@@ -129,7 +129,7 @@ namespace chaiscript
129129 virtual Boxed_Value do_call (const std::vector<Boxed_Value> ¶ms, const Type_Conversions &t_conversions) const = 0;
130130
131131 Proxy_Function_Base (std::vector<Type_Info> t_types, int t_arity)
132- : m_types(std::move(t_types)), m_has_arithmetic_param( false ), m_arity(t_arity )
132+ : m_types(std::move(t_types)), m_arity(t_arity ), m_has_arithmetic_param( false )
133133 {
134134 for (size_t i = 1 ; i < m_types.size (); ++i)
135135 {
@@ -175,8 +175,8 @@ namespace chaiscript
175175 }
176176
177177 std::vector<Type_Info> m_types;
178- bool m_has_arithmetic_param;
179178 int m_arity;
179+ bool m_has_arithmetic_param;
180180 };
181181 }
182182
@@ -220,11 +220,11 @@ namespace chaiscript
220220 std::string t_description = " " ,
221221 Proxy_Function t_guard = Proxy_Function())
222222 : Proxy_Function_Base(build_param_type_list(t_arity), t_arity),
223- m_f (std::move(t_f )), m_arity(t_arity), m_description( std::move(t_description )), m_guard (std::move(t_guard )), m_parsenode (std::move(t_parsenode ))
223+ m_guard (std::move(t_guard )), m_parsenode( std::move(t_parsenode )), m_description (std::move(t_description )), m_f (std::move(t_f ))
224224 {
225225 }
226226
227- virtual ~Dynamic_Proxy_Function () {}
227+ virtual ~Dynamic_Proxy_Function () = default ;
228228
229229 virtual bool operator ==(const Proxy_Function_Base &rhs) const CHAISCRIPT_OVERRIDE
230230 {
@@ -311,11 +311,10 @@ namespace chaiscript
311311 return types;
312312 }
313313
314- std::function<Boxed_Value (const std::vector<Boxed_Value> &)> m_f;
315- int m_arity;
316- std::string m_description;
317314 Proxy_Function m_guard;
318315 AST_NodePtr m_parsenode;
316+ std::string m_description;
317+ std::function<Boxed_Value (const std::vector<Boxed_Value> &)> m_f;
319318 };
320319
321320 /* *
@@ -591,7 +590,8 @@ namespace chaiscript
591590 {
592591 }
593592
594- virtual ~dispatch_error () CHAISCRIPT_NOEXCEPT {}
593+ dispatch_error (const dispatch_error &) = default ;
594+ virtual ~dispatch_error () CHAISCRIPT_NOEXCEPT = default ;
595595
596596 std::vector<Boxed_Value> parameters;
597597 std::vector<Const_Proxy_Function> functions;
0 commit comments