diff options
author | philip.liard@gmail.com <philip.liard@gmail.com@ee073f10-1060-11df-b6a4-87a95322a99c> | 2013-04-30 15:40:46 +0000 |
---|---|---|
committer | philip.liard@gmail.com <philip.liard@gmail.com@ee073f10-1060-11df-b6a4-87a95322a99c> | 2013-04-30 15:40:46 +0000 |
commit | 94f3dc686d5f369ee596aa3e22344683f6773494 (patch) | |
tree | a4c05b5bc7386a10315a5800ea18c73f5d035d9d /base/basictypes.h | |
parent | 01e7fad6acf43df86b266928f602d9709af67bae (diff) | |
download | phonenumbers-94f3dc686d5f369ee596aa3e22344683f6773494.tar.gz |
CPP: Move base code to i18n::phonenumbers namespace.
This is needed to avoid name clashes when the library is embedded into
Chromium.
BUG=http://crbug.com/236272
R=jia.shao.peng@gmail.com
Review URL: https://codereview.appspot.com/9029045
git-svn-id: http://libphonenumber.googlecode.com/svn/trunk/cpp/src/phonenumbers@569 ee073f10-1060-11df-b6a4-87a95322a99c
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_ |