Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template <typename TStringSet, typename TSpec>
- inline Iter<TStringSet, ConcatVirtual<TSpec> > const &
- operator++(Iter<TStringSet, ConcatVirtual<TSpec> > & me, int)
- {
- Iter<TStringSet, ConcatVirtual<TSpec> > before = me;
- goNext(me);
- return before;
- }
- This suspicious code was found in SeqAn project by PVS-Studio static code analyzer.
- Warning message is:
- V558 Function returns the reference to temporary local object: before. iter_concat_virtual.h 277
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment