{
typedef typename RemoveConst<T>::Type NCT;
- T *ptr = get_item(items, name).value<RefPtr<NCT> >();
+ T *ptr = get_item(items, name).value<RefPtr<NCT> >().get();
if(!ptr)
throw key_error(typeid(ItemMap));
return *ptr;
private:
template<typename T>
- void collect_items(std::list<T *> *objects, std::list<std::string> *names, std::list<std::string> *future_names)
+ void collect_items(std::list<T *> *objects, std::list<std::string> *names, std::list<std::string> *future_names) const
{
typedef RefPtr<typename RemoveConst<T>::Type> RPNCT;