diff --git a/src/core/Set.h b/src/core/Set.h index 36bed9a616d7110d5706d1ec4a320cff62fefbef..3b77f42e7abdb89bcfdfe18e28db5bd38ca16b62 100644 --- a/src/core/Set.h +++ b/src/core/Set.h @@ -101,7 +101,7 @@ public: inline virtual ~Set() {} - static const Set<T>& emptySet() { static Set set; return set; } + static const Set<T> emptySet() { return {}; } inline std::pair<iterator,bool> insert( const T& element ) { return set_.insert( element ); } inline iterator insert( iterator position, const T& element ) { return set_.insert( position, element ); }