Skip to content
Snippets Groups Projects
Commit c9294385 authored by Tom Fischer's avatar Tom Fischer
Browse files

changes for non pointer types

parent 581a163d
No related branches found
No related tags found
No related merge requests found
...@@ -137,7 +137,7 @@ public: ...@@ -137,7 +137,7 @@ public:
std::cout << "error computing indices " << std::endl; std::cout << "error computing indices " << std::endl;
} }
_grid_cell_nodes_map[i + j * _n_steps[0] + k * n_plane].push_back(copyOrAddress(*it)); _grid_cell_nodes_map[i + j * _n_steps[0] + k * n_plane].push_back(const_cast<POINT*>(copyOrAddress(*it)));
it++; it++;
} }
...@@ -328,6 +328,7 @@ private: ...@@ -328,6 +328,7 @@ private:
} }
static POINT* copyOrAddress(POINT& p) { return &p; } static POINT* copyOrAddress(POINT& p) { return &p; }
static POINT const* copyOrAddress(POINT const& p) { return &p; }
static POINT* copyOrAddress(POINT* p) { return p; } static POINT* copyOrAddress(POINT* p) { return p; }
double _step_sizes[3]; double _step_sizes[3];
......
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