X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcollection.h;h=174c7fcabce52812083a7d8184670d2b24eda32e;hb=b39ce68f12c30eedb272b65fe78baec5864d89ca;hp=5f0650c6761043977e85a33e55c6854d25b1703f;hpb=7feeeacf8fa3eae889cb256c42ada615c4761eec;p=libs%2Fdatafile.git diff --git a/source/collection.h b/source/collection.h index 5f0650c..174c7fc 100644 --- a/source/collection.h +++ b/source/collection.h @@ -380,7 +380,7 @@ private: Creator(FuncPtr f): func(f) { } virtual T *create(Collection &coll, const std::string &name) const - { return (static_cast(coll).*func)(name); } + { return (dynamic_cast(coll).*func)(name); } }; template