diff options
author | graehl@gmail.com <graehl@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-15 03:35:23 +0000 |
---|---|---|
committer | graehl@gmail.com <graehl@gmail.com@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-15 03:35:23 +0000 |
commit | 3b245a5b2a858fe3712ca367312146f5505abb25 (patch) | |
tree | 1bbffa9f1d180bb19fe1f2bc3c1d966c45f72a6e /utils/indices_after.h | |
parent | 66d9f91ce7ad792138d68a7f29ab159e7af6a132 (diff) |
warning
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@551 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'utils/indices_after.h')
-rwxr-xr-x | utils/indices_after.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/utils/indices_after.h b/utils/indices_after.h index 2891563c..62683f39 100755 --- a/utils/indices_after.h +++ b/utils/indices_after.h @@ -47,8 +47,8 @@ unsigned new_indices_keep_if_n(unsigned n,It i,KeepIf const& r,O out) } template <class KEEP,class O> -unsigned new_indices(KEEP keep,O out) { - return new_indices(keep.begin(),keep.end(),out); +unsigned new_indices_keep(KEEP keep,O out) { + return new_indices_keep(keep.begin(),keep.end(),out); } template <class V,class Out,class Permi> @@ -129,8 +129,10 @@ struct indices_after if (n_mapped>0) { map=(unsigned *)::operator new(sizeof(unsigned)*n_mapped); n_kept=new_indices_keep(i,end,map); - } else + } else { + n_kept=0; map=NULL; + } } template <class A> void init(A const& a) @@ -139,7 +141,7 @@ struct indices_after } template <class A> - indices_after(A const& a) + explicit indices_after(A const& a) { init(a.begin(),a.end()); } |