diff --git a/libcorpus2_whole/corpus.h b/libcorpus2_whole/corpus.h index 85c5caf294220456a968a204a328a405f279eb40..b4ca6e812738e5179ead9023d1907eea2434f3a2 100644 --- a/libcorpus2_whole/corpus.h +++ b/libcorpus2_whole/corpus.h @@ -50,7 +50,7 @@ public: /// Next document in corpus boost::shared_ptr<Document> next_document() { - static boost::shared_ptr<Document> _empty_doc_ptr; + boost::shared_ptr<Document> _empty_doc_ptr; if (!this->set_) { if (this->documents_.size() == 0) { return _empty_doc_ptr;