Skip to content

Commit

Permalink
Fix operator!= for pat::strbitset
Browse files Browse the repository at this point in the history
The operator!= was calling itself to form an infinite recursion.
It now calls ! operator== which was the original intent.
  • Loading branch information
Dr15Jones committed Jan 11, 2017
1 parent 9d95afb commit 0a2e98a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PhysicsTools/SelectorUtils/interface/strbitset.h
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ class strbitset {

//! inequality operator to bool
bool operator!=( bool b ) const {
return ! ( operator!=(b));
return ! ( operator==(b));
}

//! returns number of bits set
Expand Down

0 comments on commit 0a2e98a

Please sign in to comment.