Skip to content

Commit e74f89c

Browse files
committed
Make Boolean test for shared handles explicit
1 parent 9d7b8a0 commit e74f89c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ New stuff!
7272
Module: int
7373
What: removed
7474
Rank: minor
75+
Thanks: Jens Krueger
7576
[DESCRIPTION]
7677
The bool test operator has been removed from IntSet (it created
7778
problems and is actually useless for IntSet as they are always

gecode/kernel/shared-object.hpp

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ namespace Gecode {
8080
/// Destructor that maintains reference count
8181
~SharedHandle(void);
8282
/// Whether handle points to an object
83-
operator bool(void) const;
83+
explicit operator bool(void) const;
8484
protected:
8585
/// Access to the shared object
8686
SharedHandle::Object* object(void) const;

0 commit comments

Comments
 (0)