Skip to content

Commit 6cff7aa

Browse files
authored
Merge pull request #2267 from jwillemsen/jwi-explicitop
Mark operator bool as explicit
2 parents 489a3a7 + 32c3400 commit 6cff7aa

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

ACE/protocols/ace/INet/HTTPS_Context.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ namespace ACE
4848

4949
~Context ();
5050

51-
operator bool () const;
51+
explicit operator bool () const;
5252

5353
bool operator ! () const;
5454

ACE/protocols/ace/INet/HTTP_Status.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ namespace ACE
121121
bool is_ok () const;
122122

123123
/// Return true in case of a *valid* HTTP status
124-
operator bool () const;
124+
explicit operator bool () const;
125125

126126
/// Return true if status code == INVALID
127127
bool operator !() const;

ACE/protocols/ace/INet/URLBase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ namespace ACE
4343

4444
bool operator ! ();
4545

46-
operator bool ();
46+
explicit operator bool ();
4747

4848
std::istream& operator * ();
4949

TAO/orbsvcs/orbsvcs/FtRtEvent/EventChannel/Dynamic_Bitset.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Dynamic_Bitset
3131
typedef unsigned size_type;
3232
reference(Dynamic_Bitset* bitset, size_type bit);
3333
reference operator = (bool val);
34-
operator bool () const;
34+
explicit operator bool () const;
3535
private:
3636
Dynamic_Bitset* bitset_;
3737
size_type bit_;

0 commit comments

Comments
 (0)