diff options
Diffstat (limited to 'base/basictypes.h')
-rw-r--r-- | base/basictypes.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/base/basictypes.h b/base/basictypes.h index 4a9d693..312252f 100644 --- a/base/basictypes.h +++ b/base/basictypes.h @@ -282,21 +282,4 @@ template<typename T> inline void ignore_result(const T&) { } -// The following enum should be used only as a constructor argument to indicate -// that the variable has static storage class, and that the constructor should -// do nothing to its state. It indicates to the reader that it is legal to -// declare a static instance of the class, provided the constructor is given -// the base::LINKER_INITIALIZED argument. Normally, it is unsafe to declare a -// static variable that has a constructor or a destructor because invocation -// order is undefined. However, IF the type can be initialized by filling with -// zeroes (which the loader does for static variables), AND the destructor also -// does nothing to the storage, AND there are no virtual methods, then a -// constructor declared as -// explicit MyClass(base::LinkerInitialized x) {} -// and invoked as -// static MyClass my_variable_name(base::LINKER_INITIALIZED); -namespace base { -enum LinkerInitialized { LINKER_INITIALIZED }; -} // base - #endif // I18N_PHONENUMBERS_BASE_BASICTYPES_H_ |