diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-24 23:32:13 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-24 23:32:13 +0000 |
commit | 1bc2de46d9bdcab02caa8a4623c08472d71aa8d7 (patch) | |
tree | e360a34935f0862ee63384d11254538a1ebb4d24 /base/string16.cc | |
parent | 476de223832b5c9e5ed739e08abadac74dabee25 (diff) | |
download | chromium_src-1bc2de46d9bdcab02caa8a4623c08472d71aa8d7.zip chromium_src-1bc2de46d9bdcab02caa8a4623c08472d71aa8d7.tar.gz chromium_src-1bc2de46d9bdcab02caa8a4623c08472d71aa8d7.tar.bz2 |
Explicitly instantiate the string16 backer exactly once, avoiding problems in
shared library builds and an Apple ld bug
Review URL: http://codereview.chromium.org/49023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12406 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/string16.cc')
-rw-r--r-- | base/string16.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/string16.cc b/base/string16.cc index a47a147..ca45fba 100644 --- a/base/string16.cc +++ b/base/string16.cc @@ -67,6 +67,8 @@ char16* c16memset(char16* s, char16 c, size_t n) { } // namespace base +template class std::basic_string<char16, base::string16_char_traits>; + std::ostream& operator<<(std::ostream& out, const string16& str) { return out << UTF16ToUTF8(str); } |