Bug 656059 - Add operator-> to mozilla::DebugOnly<T> so it can store pointers. r=cjones

--HG--
extra : rebase_source : 3d7aeec93f1ae1e5bbd4b03c30216e70fe15eb6a
This commit is contained in:
Jeff Walden 2011-05-10 14:56:49 -07:00
parent 86bb2cd975
commit 1644a3dc71

View File

@ -113,6 +113,8 @@ struct DebugOnly
operator T&() { return value; }
operator const T&() const { return value; }
T& operator->() { return value; }
#else
DebugOnly() {}
DebugOnly(const T&) {}