Skip to content

Commit

Permalink
Make Boolean test for shared handles explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
chschulte committed Jan 29, 2019
1 parent 9d7b8a0 commit e74f89c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.in
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ New stuff!
Module: int
What: removed
Rank: minor
Thanks: Jens Krueger
[DESCRIPTION]
The bool test operator has been removed from IntSet (it created
problems and is actually useless for IntSet as they are always
Expand Down
2 changes: 1 addition & 1 deletion gecode/kernel/shared-object.hpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ namespace Gecode {
/// Destructor that maintains reference count
~SharedHandle(void);
/// Whether handle points to an object
operator bool(void) const;
explicit operator bool(void) const;
protected:
/// Access to the shared object
SharedHandle::Object* object(void) const;
Expand Down

0 comments on commit e74f89c

Please sign in to comment.