Get chaiscript compiling with LLVM/clang. Resulting code crashes, however.
This commit is contained in:
@@ -156,8 +156,8 @@ namespace chaiscript
|
||||
detail::Get_Type_Info<T>::get(),
|
||||
boost::any(obj),
|
||||
false,
|
||||
&Data::unique<T>,
|
||||
&Data::is_null<T>)
|
||||
boost::function<bool (boost::any *)>(&Data::unique<T>),
|
||||
boost::function<bool (boost::any *)>(&Data::is_null<T>))
|
||||
);
|
||||
|
||||
std::map<Object_Cache_Key, Data>::iterator itr
|
||||
@@ -219,8 +219,8 @@ namespace chaiscript
|
||||
detail::Get_Type_Info<T>::get(),
|
||||
boost::any(boost::shared_ptr<T>(new T(t))),
|
||||
false,
|
||||
&Data::unique<T>,
|
||||
&Data::is_null<T>)
|
||||
boost::function<bool (boost::any *)>(&Data::unique<T>),
|
||||
boost::function<bool (boost::any *)>(&Data::is_null<T>))
|
||||
);
|
||||
|
||||
boost::shared_ptr<T> *ptr = boost::any_cast<boost::shared_ptr<T> >(&data->m_obj);
|
||||
|
@@ -287,8 +287,9 @@ namespace chaiscript
|
||||
Bound_Function(const Const_Proxy_Function &t_f,
|
||||
const std::vector<Boxed_Value> &t_args)
|
||||
: Proxy_Function_Base(std::vector<Type_Info>()),
|
||||
m_f(t_f), m_args(t_args), m_arity(m_f->get_arity()<0?-1:(m_f->get_arity() - m_args.size()))
|
||||
m_f(t_f), m_args(t_args), m_arity(m_f->get_arity()<0?-1:(m_f->get_arity() - static_cast<int>(m_args.size())))
|
||||
{
|
||||
assert(m_f->get_arity() >= static_cast<int>(m_args.size()));
|
||||
}
|
||||
|
||||
virtual bool operator==(const Proxy_Function_Base &) const
|
||||
|
Reference in New Issue
Block a user