aboutsummaryrefslogtreecommitdiffstats
path: root/data_sets/shared_table_data_set.hpp
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-09-26 16:14:01 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2009-09-26 16:14:01 +0000
commit1e204c64161611ff2cd35fb6becf49f7a3e3f6a5 (patch)
tree6f523593c8fc9a9508754dcdc76f4ac4c94c1f2a /data_sets/shared_table_data_set.hpp
parent998693b0bbbaae72beefb5f0fb6351ca839b06da (diff)
downloadopt-utilities-1e204c64161611ff2cd35fb6becf49f7a3e3f6a5.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@74 ed2142bd-67ad-457f-ba7c-d818d4011675
Diffstat (limited to 'data_sets/shared_table_data_set.hpp')
-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;