mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1248843 - Make it clearer that DebugOnly uses up space even in optimized, non-DEBUG builds. r=Waldo
This commit is contained in:
parent
044a3f21fc
commit
618c28bbdd
@ -30,8 +30,9 @@ namespace mozilla {
|
||||
* DebugOnly instances can only be coerced to T in debug builds. In release
|
||||
* builds they don't have a value, so type coercion is not well defined.
|
||||
*
|
||||
* Note that DebugOnly instances still take up one byte of space, plus padding,
|
||||
* when used as members of structs.
|
||||
* NOTE! DebugOnly instances still take up one byte of space, plus padding, even
|
||||
* in optimized, non-DEBUG builds. Don't use DebugOnly for struct/class members
|
||||
* unless that really doesn't matter to you.
|
||||
*/
|
||||
template<typename T>
|
||||
class DebugOnly
|
||||
|
Loading…
Reference in New Issue
Block a user