summaryrefslogtreecommitdiff
path: root/src/common/bit_field.h
diff options
context:
space:
mode:
authorGravatar Lioncash2018-08-21 06:39:42 -0400
committerGravatar Lioncash2018-08-21 06:39:45 -0400
commit36090521ce34303fc2c5d73b9da46748f6630ed8 (patch)
treeccbd41c1bc74ce7e8b7cb40d8aa427129b3c0c02 /src/common/bit_field.h
parentMerge pull request #1123 from lioncash/screen (diff)
downloadyuzu-36090521ce34303fc2c5d73b9da46748f6630ed8.tar.gz
yuzu-36090521ce34303fc2c5d73b9da46748f6630ed8.tar.xz
yuzu-36090521ce34303fc2c5d73b9da46748f6630ed8.zip
bit_field: Convert ToBool() into explicit operator bool
Gets rid of a TODO that is long overdue.
Diffstat (limited to '')
-rw-r--r--src/common/bit_field.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/bit_field.h b/src/common/bit_field.h
index 65e357dec..732201de7 100644
--- a/src/common/bit_field.h
+++ b/src/common/bit_field.h
@@ -178,8 +178,7 @@ public:
178 return ExtractValue(storage); 178 return ExtractValue(storage);
179 } 179 }
180 180
181 // TODO: we may want to change this to explicit operator bool() if it's bug-free in VS2015 181 constexpr explicit operator bool() const {
182 constexpr FORCE_INLINE bool ToBool() const {
183 return Value() != 0; 182 return Value() != 0;
184 } 183 }
185 184