@@ -69,18 +69,16 @@ template<class T> class GalleyVectorStrStampBase: public GalleyVectorStr, publi
6969
7070class GalleyVectorBin :public GalleyVectorBase
7171{
72- std::shared_ptr<StampBaseBin> b_stamp;
7372public:
74- GalleyVectorBin (std::shared_ptr<StampBaseBin> stamp_arg): GalleyVectorBase(stamp_arg), b_stamp(stamp_arg) {};
73+ GalleyVectorBin (std::shared_ptr<StampBaseBin> stamp_arg): GalleyVectorBase(stamp_arg) {};
7574 std::vector<std::vector<char >>ExtractBinVector (std::shared_ptr<Blob> blob);
7675};
7776
7877
7978template <class T >class GalleyVectorV :public GalleyVectorBase
8079{
81- std::shared_ptr<StampBaseV<T>> v_stamp;
8280public:
83- GalleyVectorV (std::shared_ptr<StampBaseV<T>> stamp_arg): GalleyVectorBase(stamp_arg), v_stamp(stamp_arg) {};
81+ GalleyVectorV (std::shared_ptr<StampBaseV<T>> stamp_arg): GalleyVectorBase(stamp_arg) {};
8482 std::vector<T>ExtractValuesVector (std::shared_ptr<Blob> blob);
8583};
8684
@@ -93,7 +91,7 @@ GalleyVectorV<T>::ExtractValuesVector(std::shared_ptr<Blob> blob)
9391
9492for (int i=0 ; i<blobs.size (); i++)
9593 {
96- res[i] =v_stamp ->ExtractValue (blobs[i]);
94+ res[i] =std::dynamic_pointer_cast<StampBaseV<T>>(stamp) ->ExtractValue (blobs[i]);
9795 }
9896return res;
9997}