Closed karlrupp closed 11 years ago
Old version:
if (element.id().get()-1 == container.size()) container.erase( container.size()-1 );
Does this make any sense?
New version:
if (static_cast<size_type>(element.id().get()) == container.size() - 1) container.erase( container.size()-1 );
(silenced GCC warnings via static_cast) This makes more sense to me, yet I'm not sure whether this was the initial intention.
Bug will be fixed in https://github.com/viennagrid/viennagrid-dev/issues/22 Same bug was present in ViennaData -> fixed
Old version:
Does this make any sense?
New version:
(silenced GCC warnings via static_cast) This makes more sense to me, yet I'm not sure whether this was the initial intention.