aboutsummaryrefslogtreecommitdiffstats
path: root/data_sets
diff options
context:
space:
mode:
Diffstat (limited to 'data_sets')
-rw-r--r--data_sets/shared_table_data_set.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/data_sets/shared_table_data_set.hpp b/data_sets/shared_table_data_set.hpp
index 380e055..cd2bf55 100644
--- a/data_sets/shared_table_data_set.hpp
+++ b/data_sets/shared_table_data_set.hpp
@@ -93,7 +93,7 @@ namespace opt_utilities
bool erase_data(size_t beg,size_t end)
{
- if(beg>=0&&beg<end&&end<data_vec.size())
+ if(beg>=0&&beg<=end&&end<=data_vec.size())
{
data_vec.erase(data_vec.begin()+beg,data_vec.begin()+end);
return true;