mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-09 23:24:02 +00:00
[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:
parent
8502da510e
commit
270f3e239c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user