Skip to content
Snippets Groups Projects
Commit 03035168 authored by Dmitry Yu. Naumov's avatar Dmitry Yu. Naumov
Browse files

[MeL] Correct PropertyVector includes.

Correct includes according to iwyu
iwyu - Include what you use tool by google.

Use range-for-loop instead of std::for_each algorithm.
parent 7a9c031f
No related branches found
No related tags found
No related merge requests found
......@@ -11,12 +11,10 @@
#ifndef PROPERTYVECTOR_H_
#define PROPERTYVECTOR_H_
#include <algorithm>
#include <iosfwd>
#include <iterator>
#include <ostream>
#include <string>
#include <vector>
#include <type_traits>
#include <memory>
#include "Location.h"
#include "BaseLib/excludeObjectCopy.h"
......@@ -24,8 +22,7 @@
namespace MeshLib
{
template <typename T>
class PropertyVector;
//template <typename T> class PropertyVector;
class PropertyVectorBase
{
......@@ -122,9 +119,8 @@ public:
/// Destructor ensures the deletion of the heap-constructed objects.
~PropertyVector()
{
std::for_each(
_values.begin(), _values.end(), std::default_delete<T>()
);
for (auto v : _values)
delete v;
}
/// The operator[] uses the item to group property map to access to the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment