[example/index] Fix GCC/clang c++98 compilation error in glut_vis.cpp

The error is caused by the Boost.Move limitation - the correct implicit assignment operator can't be automatically generated for a containing class.
This commit is contained in:
Adam Wulkiewicz 2014-05-19 17:07:52 +02:00
parent 8502da510e
commit 270f3e239c

View File

@ -48,6 +48,14 @@ typedef bg::model::multi_polygon<Poly> MPoly;
template <typename V>
struct containers
{
containers & operator=(containers const& c)
{
tree = c.tree;
values = c.values;
result = c.result;
return *this;
}
bgi::rtree< V, bgi::rstar<4, 2> > tree;
std::vector<V> values;
std::vector<V> result;