X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcollection.h;h=b2c91d6879c82ef486b9b29b78f0f4054779dd59;hb=92bcf7a5e69a7c8e6055a77a39f356c293b89445;hp=66c50fe69d2c86e85ce38ac1e2b4bb73fd8672b3;hpb=495920e971324d29bd4933b8a319fb5668ca5562;p=libs%2Fdatafile.git diff --git a/source/collection.h b/source/collection.h index 66c50fe..b2c91d6 100644 --- a/source/collection.h +++ b/source/collection.h @@ -146,7 +146,7 @@ public: { typedef typename RemoveConst::Type NCT; - T *ptr = get_item(items, name).value >(); + T *ptr = get_item(items, name).value >().get(); if(!ptr) throw key_error(typeid(ItemMap)); return *ptr; @@ -159,7 +159,7 @@ public: private: template - void collect_items(std::list *objects, std::list *names, std::list *future_names) + void collect_items(std::list *objects, std::list *names, std::list *future_names) const { typedef RefPtr::Type> RPNCT;